Skip to content
Merged
10 changes: 6 additions & 4 deletions .github/workflows/publish-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benjaminkalk Does this need following? I'm not sure which version would it run when we dont specify anything.

strategy:
matrix:
node-version: [22]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch @devpatil7, I have added strategy with latest version to align with the PR workflow.

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
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/storefront-merge-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading