Skip to content

Commit

Permalink
ci: add id field to setup node action
Browse files Browse the repository at this point in the history
  • Loading branch information
joneff committed Jun 14, 2023
1 parent 3722800 commit 4e7cb39
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,20 @@ jobs:
run:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x]

steps:

- name: Checkout branch
uses: actions/checkout@v3

- name: Setup node
id: setup-node
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: ${{ matrix.node-version }}

- name: Use cache for root node_modules
id: cache-root-node_modules
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/_lint-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup node
id: setup-node
uses: actions/setup-node@v3
with:
node-version: 16.x
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/_unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup node
id: setup-node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ jobs:
git reset --hard origin/master
git merge --ff-only --quiet origin/develop
- name: Setup node
id: setup-node
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Use cache for root node_modules
id: cache-root-node_modules
uses: actions/cache@v3
Expand Down

0 comments on commit 4e7cb39

Please sign in to comment.