Skip to content

Commit

Permalink
CI: Install the same version of NodeJS that is specified in `.tool-ve…
Browse files Browse the repository at this point in the history
…rsions`
  • Loading branch information
DilumAluthge committed Jun 19, 2024
1 parent 7dbbd78 commit b73dcec
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/checkin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 20
node-version-file: '.tool-versions'

- name: "npm ci"
run: npm ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/example-builds-defaultarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
if: ${{ ! startsWith(github.ref, 'refs/heads/releases') }}
with:
node-version: 16
node-version-file: '.tool-versions'

- name: "Install dependencies"
if: ${{ ! startsWith(github.ref, 'refs/heads/releases') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-builds-nightly-defaultarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- uses: actions/setup-node@v4
if: ${{ ! startsWith(github.ref, 'refs/heads/releases') }}
with:
node-version: 16
node-version-file: '.tool-versions'

- name: "Install dependencies"
if: ${{ ! startsWith(github.ref, 'refs/heads/releases') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-builds-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- uses: actions/setup-node@v4
if: ${{ ! startsWith(github.ref, 'refs/heads/releases') }}
with:
node-version: 16
node-version-file: '.tool-versions'

- name: "Install dependencies"
if: ${{ ! startsWith(github.ref, 'refs/heads/releases') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: actions/setup-node@v4
if: ${{ ! startsWith(github.ref, 'refs/heads/releases') }}
with:
node-version: 16
node-version-file: '.tool-versions'

- name: "Install dependencies"
if: ${{ ! startsWith(github.ref, 'refs/heads/releases') }}
Expand Down

0 comments on commit b73dcec

Please sign in to comment.