Skip to content

Commit

Permalink
ci(node): Use a common node version (#616)
Browse files Browse the repository at this point in the history
- and use the default npm registry everywhere.
- and use the current version the setup-node action everywhere.
  • Loading branch information
boredland authored Oct 7, 2024
1 parent 4da9121 commit 0df9b4b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: "https://registry.npmjs.org"
node-version-file: .nvmrc
cache: "yarn"

- name: install
Expand Down Expand Up @@ -55,8 +54,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: "https://registry.npmjs.org"
node-version-file: .nvmrc
cache: "yarn"

- name: install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
with:
version: nightly

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: .nvmrc
cache: "yarn"

- name: Install dependencies
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/test-release-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ jobs:
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
node-version-file: .nvmrc
cache: "yarn"

- name: Package size report
Expand Down
2 changes: 2 additions & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://vercel.com/docs/functions/runtimes/node-js/node-js-versions
20

0 comments on commit 0df9b4b

Please sign in to comment.