Skip to content

Commit 0df9b4b

Browse files
authored
ci(node): Use a common node version (#616)
- and use the default npm registry everywhere. - and use the current version the setup-node action everywhere.
1 parent 4da9121 commit 0df9b4b

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.github/workflows/checks.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ jobs:
2424
- name: Setup Node.js
2525
uses: actions/setup-node@v4
2626
with:
27-
node-version: "22"
28-
registry-url: "https://registry.npmjs.org"
27+
node-version-file: .nvmrc
2928
cache: "yarn"
3029

3130
- name: install
@@ -55,8 +54,7 @@ jobs:
5554
- name: Setup Node.js
5655
uses: actions/setup-node@v4
5756
with:
58-
node-version: "22"
59-
registry-url: "https://registry.npmjs.org"
57+
node-version-file: .nvmrc
6058
cache: "yarn"
6159

6260
- name: install

.github/workflows/cron.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
with:
3535
version: nightly
3636

37-
- uses: actions/setup-node@v3
37+
- uses: actions/setup-node@v4
3838
with:
39-
node-version: 20
39+
node-version-file: .nvmrc
4040
cache: "yarn"
4141

4242
- name: Install dependencies

.github/workflows/test-release-alpha.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ jobs:
2626
uses: actions/checkout@v3
2727

2828
- name: Setup Node.js
29-
uses: actions/setup-node@v3
29+
uses: actions/setup-node@v4
3030
with:
31-
node-version: "20"
32-
registry-url: "https://registry.npmjs.org"
31+
node-version-file: .nvmrc
3332
cache: "yarn"
3433

3534
- name: Package size report

.nvmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# https://vercel.com/docs/functions/runtimes/node-js/node-js-versions
2+
20

0 commit comments

Comments
 (0)