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` (#253)

* Create a `.tool-versions` file with an entry for NodeJS 20

* CI: Install the same version of NodeJS that is specified in `.tool-versions`
  • Loading branch information
DilumAluthge authored Jun 19, 2024
1 parent e62bf8c commit 42e03d3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checkin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

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

- name: "npm ci"
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-builds-defaultarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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-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
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 20.11.1

0 comments on commit 42e03d3

Please sign in to comment.