Skip to content

Commit 60e766d

Browse files
authored
Node 22 + use .nvmrc as single place to define version (#1523)
* node 22 * use the .nvmrc file to define node version in 1 place
1 parent 9bf9837 commit 60e766d

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/build-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
- name: Checkout repository
1616
uses: actions/checkout@v4
1717

18-
- name: Use Node.js 20
18+
- name: Use Node.js
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: 20.x
21+
node-version-file: '.nvmrc'
2222
- uses: actions/cache@v4
2323
with:
2424
path: ~/.npm

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 20
18+
node-version-file: '.nvmrc'
1919
cache: 'npm'
2020

2121
- name: Fetch files and ensure branches exist

.github/workflows/tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
os: [ubuntu-latest, windows-latest]
2121
steps:
2222
- uses: actions/checkout@v4
23-
- name: Use Node.js 20
23+
- name: Use Node.js
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: 20.x
26+
node-version-file: '.nvmrc'
2727
- uses: actions/cache@v4
2828
with:
2929
path: ~/.npm
@@ -42,10 +42,10 @@ jobs:
4242
timeout-minutes: 10
4343
steps:
4444
- uses: actions/checkout@v4
45-
- name: Use Node.js 20
45+
- name: Use Node.js
4646
uses: actions/setup-node@v4
4747
with:
48-
node-version: 20.x
48+
node-version-file: '.nvmrc'
4949
- uses: actions/cache@v4
5050
with:
5151
path: ~/.npm
@@ -85,10 +85,10 @@ jobs:
8585
url: ${{ steps.deployment.outputs.page_url }}
8686
steps:
8787
- uses: actions/checkout@v4
88-
- name: Use Node.js 20
88+
- name: Use Node.js
8989
uses: actions/setup-node@v4
9090
with:
91-
node-version: 20.x
91+
node-version-file: '.nvmrc'
9292
- name: Cache build outputs
9393
id: docs-output
9494
uses: actions/cache@v4

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
22

0 commit comments

Comments
 (0)