Skip to content

Commit b7234cc

Browse files
Upgrade action to use node24 (#1325)
* Change Node.js version to 24 Update Node.js version from 20 to 24 in action.yml * update and vulnerability fixes * update node version check * update licences * node version check update * update version for test * node version * update node version to 24.0.0 in tool-versions and package-volta.json * node 24 * update to 24 * update to specify engines * check failures fix * update package-lock.json * licensed update * check failure fix * documentation update --------- Co-authored-by: Aparna Jyothi <[email protected]>
1 parent d7a1131 commit b7234cc

16 files changed

+104
-89
lines changed

.github/workflows/basic-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
name: Basic validation
1717
uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main
1818
with:
19-
node-version: '20.x'
19+
node-version: '24.x'

.github/workflows/e2e-cache.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
22-
node-version: [18, 20, 22]
22+
node-version: [18, 20, 22, 24]
2323
steps:
2424
- uses: actions/checkout@v4
2525
- name: Clean global cache
@@ -42,7 +42,7 @@ jobs:
4242
fail-fast: false
4343
matrix:
4444
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
45-
node-version: [18, 20, 22]
45+
node-version: [18, 20, 22, 24]
4646
steps:
4747
- uses: actions/checkout@v4
4848
- name: Install pnpm
@@ -75,13 +75,13 @@ jobs:
7575
fail-fast: false
7676
matrix:
7777
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
78-
node-version: [18, 20]
78+
node-version: [18, 20, 24]
7979
steps:
8080
- uses: actions/checkout@v4
8181
- name: Yarn version
8282
run: yarn --version
8383
- name: Generate yarn file
84-
run: yarn install
84+
run: yarn install --ignore-engines
8585
- name: Remove dependencies
8686
shell: pwsh
8787
run: Remove-Item node_modules -Force -Recurse
@@ -107,7 +107,7 @@ jobs:
107107
fail-fast: false
108108
matrix:
109109
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
110-
node-version: [18, 20, 22]
110+
node-version: [18, 20, 22, 24]
111111
steps:
112112
- uses: actions/checkout@v4
113113
- name: Update yarn
@@ -139,7 +139,7 @@ jobs:
139139
name: Test yarn subprojects
140140
strategy:
141141
matrix:
142-
node-version: [18, 20, 22]
142+
node-version: [18, 20, 22, 24]
143143
runs-on: ubuntu-latest
144144

145145
steps:
@@ -166,7 +166,7 @@ jobs:
166166
name: Test yarn subprojects all locally managed
167167
strategy:
168168
matrix:
169-
node-version: [18, 20, 22]
169+
node-version: [18, 20, 22, 24]
170170
runs-on: ubuntu-latest
171171

172172
steps:
@@ -193,7 +193,7 @@ jobs:
193193
name: Test yarn subprojects some locally managed
194194
strategy:
195195
matrix:
196-
node-version: [18, 20, 22]
196+
node-version: [18, 20, 22, 24]
197197
runs-on: ubuntu-latest
198198

199199
steps:
@@ -220,7 +220,7 @@ jobs:
220220
name: Test yarn subprojects managed by git
221221
strategy:
222222
matrix:
223-
node-version: [18, 20, 22]
223+
node-version: [18, 20, 22, 24]
224224
runs-on: ubuntu-latest
225225

226226
steps:

.github/workflows/versions.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
21-
node-version: [18, 20, 22]
21+
node-version: [18, 20, 22, 24]
2222
steps:
2323
- uses: actions/checkout@v4
2424
- name: Setup Node
@@ -139,7 +139,7 @@ jobs:
139139
fail-fast: false
140140
matrix:
141141
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
142-
node-version: [18, 20, 22]
142+
node-version: [18, 20, 22, 24]
143143
steps:
144144
- uses: actions/checkout@v4
145145
- name: Setup Node and check latest
@@ -166,7 +166,7 @@ jobs:
166166
with:
167167
node-version-file: '__tests__/data/${{ matrix.node-version-file }}'
168168
- name: Verify node
169-
run: __tests__/verify-node.sh 20
169+
run: __tests__/verify-node.sh 24
170170

171171
version-file-volta:
172172
runs-on: ${{ matrix.os }}
@@ -181,7 +181,7 @@ jobs:
181181
with:
182182
node-version-file: '__tests__/data/package-volta.json'
183183
- name: Verify node
184-
run: __tests__/verify-node.sh 20
184+
run: __tests__/verify-node.sh 24
185185

186186
version-file-volta-extends:
187187
runs-on: ${{ matrix.os }}
@@ -196,7 +196,7 @@ jobs:
196196
with:
197197
node-version-file: '__tests__/data/package-volta-extends.json'
198198
- name: Verify node
199-
run: __tests__/verify-node.sh 20
199+
run: __tests__/verify-node.sh 24
200200

201201
node-dist:
202202
runs-on: ${{ matrix.os }}

.licenses/npm/@types/node.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/undici-types.dep.yml

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ See [action.yml](action.yml)
1818

1919
<!-- start usage -->
2020
```yaml
21-
- uses: actions/setup-node@v4
21+
- uses: actions/setup-node@v5
2222
with:
2323
# Version Spec of the version to use in SemVer notation.
2424
# It also admits such aliases as lts/*, latest, nightly and canary builds
@@ -98,8 +98,8 @@ See [action.yml](action.yml)
9898
9999
```yaml
100100
steps:
101-
- uses: actions/checkout@v4
102-
- uses: actions/setup-node@v4
101+
- uses: actions/checkout@v5
102+
- uses: actions/setup-node@v5
103103
with:
104104
node-version: 18
105105
- run: npm ci
@@ -159,8 +159,8 @@ See the examples of using cache for `yarn`/`pnpm` and `cache-dependency-path` in
159159

160160
```yaml
161161
steps:
162-
- uses: actions/checkout@v4
163-
- uses: actions/setup-node@v4
162+
- uses: actions/checkout@v5
163+
- uses: actions/setup-node@v5
164164
with:
165165
node-version: 20
166166
cache: 'npm'
@@ -172,8 +172,8 @@ steps:
172172

173173
```yaml
174174
steps:
175-
- uses: actions/checkout@v4
176-
- uses: actions/setup-node@v4
175+
- uses: actions/checkout@v5
176+
- uses: actions/setup-node@v5
177177
with:
178178
node-version: 20
179179
cache: 'npm'
@@ -193,9 +193,9 @@ jobs:
193193
node: [ 14, 16, 18 ]
194194
name: Node ${{ matrix.node }} sample
195195
steps:
196-
- uses: actions/checkout@v4
196+
- uses: actions/checkout@v5
197197
- name: Setup node
198-
uses: actions/setup-node@v4
198+
uses: actions/setup-node@v5
199199
with:
200200
node-version: ${{ matrix.node }}
201201
- run: npm ci
@@ -209,7 +209,7 @@ jobs:
209209
To get a higher rate limit, you can [generate a personal access token on github.com](https://github.com/settings/tokens/new) and pass it as the `token` input for the action:
210210

211211
```yaml
212-
uses: actions/setup-node@v4
212+
uses: actions/setup-node@v5
213213
with:
214214
token: ${{ secrets.GH_DOTCOM_TOKEN }}
215215
node-version: 20

__tests__/data/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20
1+
v24

__tests__/data/.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs 20.0.0
1+
nodejs 24.0.0

__tests__/data/.tool-versions-node

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
node 20.0.0
1+
node 24.0.0

__tests__/data/package-volta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"node": "^14.0.0"
44
},
55
"volta": {
6-
"node": "20.0.0"
6+
"node": "24.0.0"
77
}
88
}

0 commit comments

Comments
 (0)