diff --git a/.github/workflows/publish-latest.yml b/.github/workflows/publish-latest.yml index d9d1bd3..4c7b0bf 100644 --- a/.github/workflows/publish-latest.yml +++ b/.github/workflows/publish-latest.yml @@ -11,6 +11,9 @@ jobs: publish-latest: name: publish-latest runs-on: ubuntu-latest + strategy: + matrix: + node-version: [lts/*] steps: - name: checkout uses: actions/checkout@v2 @@ -24,11 +27,10 @@ jobs: # path: "**/node_modules" # key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - - name: node - uses: actions/setup-node@v2 + - name: node ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - node-version: 16 - registry-url: https://registry.npmjs.org/ + node-version: ${{ matrix.node-version }} - name: install run: yarn install --frozen-lockfile diff --git a/.github/workflows/storefront-merge-to-main.yml b/.github/workflows/storefront-merge-to-main.yml index 04bf992..577b994 100644 --- a/.github/workflows/storefront-merge-to-main.yml +++ b/.github/workflows/storefront-merge-to-main.yml @@ -11,6 +11,9 @@ jobs: storefront-merge-to-main: name: storefront-merge-to-main runs-on: ubuntu-latest + strategy: + matrix: + node-version: [lts/*] steps: - name: checkout uses: actions/checkout@v2 @@ -24,11 +27,10 @@ jobs: path: "**/node_modules" key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - - name: node - uses: actions/setup-node@v2 + - name: node ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - node-version: 18 - registry-url: https://registry.npmjs.org/ + node-version: ${{ matrix.node-version }} - name: install run: yarn install --frozen-lockfile