Skip to content

Commit ac2468e

Browse files
authored
Support Nodejs.24 - Merge pull request #2110 from actions/salmanmkc/node24
Support Node.js 24
2 parents ddc5fa4 + 3c8fcfc commit ac2468e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+8324
-8374
lines changed

.github/workflows/artifact-tests.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222

2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v5
2626

27-
- name: Set Node.js 20.x
28-
uses: actions/setup-node@v4
27+
- name: Set Node.js 24.x
28+
uses: actions/setup-node@v5
2929
with:
30-
node-version: 20.x
30+
node-version: 24.x
3131

3232
# Need root node_modules because certain npm packages like jest are configured for the entire repository and it won't be possible
3333
# without these to just compile the artifacts package
@@ -47,7 +47,7 @@ jobs:
4747
echo -n 'hello from file 2' > artifact-path/second.txt
4848
4949
- name: Upload Artifacts
50-
uses: actions/github-script@v7
50+
uses: actions/github-script@v8
5151
with:
5252
script: |
5353
const {default: artifact} = require('./packages/artifact/lib/artifact')
@@ -77,12 +77,12 @@ jobs:
7777
needs: [upload]
7878
steps:
7979
- name: Checkout
80-
uses: actions/checkout@v4
80+
uses: actions/checkout@v5
8181

82-
- name: Set Node.js 20.x
83-
uses: actions/setup-node@v4
82+
- name: Set Node.js 24.x
83+
uses: actions/setup-node@v5
8484
with:
85-
node-version: 20.x
85+
node-version: 24.x
8686

8787
# Need root node_modules because certain npm packages like jest are configured for the entire repository and it won't be possible
8888
# without these to just compile the artifacts package
@@ -96,7 +96,7 @@ jobs:
9696
working-directory: packages/artifact
9797

9898
- name: List and Download Artifacts
99-
uses: actions/github-script@v7
99+
uses: actions/github-script@v8
100100
with:
101101
script: |
102102
const {default: artifactClient} = require('./packages/artifact/lib/artifact')
@@ -165,7 +165,7 @@ jobs:
165165
}
166166
}
167167
- name: Delete Artifacts
168-
uses: actions/github-script@v7
168+
uses: actions/github-script@v8
169169
with:
170170
script: |
171171
const {default: artifactClient} = require('./packages/artifact/lib/artifact')

.github/workflows/audit.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818

1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
2222

23-
- name: Set Node.js 20.x
24-
uses: actions/setup-node@v4
23+
- name: Set Node.js 24.x
24+
uses: actions/setup-node@v5
2525
with:
26-
node-version: 20.x
26+
node-version: 24.x
2727

2828
- name: npm install
2929
run: npm install

.github/workflows/cache-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222

2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v5
2626

27-
- name: Set Node.js 20.x
28-
uses: actions/setup-node@v4
27+
- name: Set Node.js 24.x
28+
uses: actions/setup-node@v5
2929
with:
30-
node-version: 20.x
30+
node-version: 24.x
3131

3232
# In order to save & restore cache from a shell script, certain env variables need to be set that are only available in the
3333
# node context. This runs a local action that gets and sets the necessary env variables that are needed

.github/workflows/cache-windows-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ jobs:
1717

1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v5
2121

2222
- shell: bash
2323
run: |
2424
rm "C:\Program Files\Git\usr\bin\tar.exe"
2525
26-
- name: Set Node.js 20.x
27-
uses: actions/setup-node@v1
26+
- name: Set Node.js 24.x
27+
uses: actions/setup-node@v5
2828
with:
29-
node-version: 20.x
29+
node-version: 24.x
3030

3131
# In order to save & restore cache from a shell script, certain env variables need to be set that are only available in the
3232
# node context. This runs a local action that gets and sets the necessary env variables that are needed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2424

2525
# Initializes the CodeQL tools for scanning.
2626
- name: Initialize CodeQL

.github/workflows/releases.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ jobs:
2828

2929
steps:
3030
- name: setup repo
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@v5
3232

3333
- name: verify package exists
3434
run: ls packages/${{ github.event.inputs.package }}
3535

36-
- name: Set Node.js 20.x
37-
uses: actions/setup-node@v4
36+
- name: Set Node.js 24.x
37+
uses: actions/setup-node@v5
3838
with:
39-
node-version: 20.x
39+
node-version: 24.x
4040

4141
- name: npm install
4242
run: npm install

.github/workflows/unit-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ jobs:
1818
matrix:
1919
runs-on: [ubuntu-latest, macos-latest-large, windows-latest]
2020

21-
# Node 18 is the current default Node version in hosted runners, so users may still use the toolkit with it when running tests (see https://github.com/actions/toolkit/issues/1841)
22-
# Node 20 is the currently support Node version for actions - https://docs.github.com/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#runsusing-for-javascript-actions
23-
node-version: [18.x, 20.x]
21+
# Node 20 is the currently supported stable Node version for actions - https://docs.github.com/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#runsusing-for-javascript-actions
22+
# Node 24 is the new version being added with support in actions runners
23+
node-version: [20.x, 24.x]
2424
fail-fast: false
2525

2626
runs-on: ${{ matrix.runs-on }}
2727

2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@v5
3131

3232
- name: Set up Node ${{ matrix.node-version }}
33-
uses: actions/setup-node@v4
33+
uses: actions/setup-node@v5
3434
with:
3535
node-version: ${{ matrix.node-version }}
3636

.github/workflows/update-github.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
if: ${{ github.repository_owner == 'actions' }}
1010
steps:
1111
- name: Checkout repository
12-
uses: actions/checkout@v4
12+
uses: actions/checkout@v5
1313
- name: Update Octokit
1414
working-directory: packages/github
1515
run: |

docs/action-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
os: [ubuntu-16.04, windows-2019]
3333
runs-on: ${{matrix.os}}
3434
actions:
35-
- uses: actions/setup-node@v4
35+
- uses: actions/setup-node@v5
3636
with:
3737
version: ${{matrix.node}}
3838
- run: |

docs/container-action.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ e.g. To use https://github.com/actions/setup-node, users will author:
1818

1919
```yaml
2020
steps:
21-
using: actions/setup-node@v4
21+
using: actions/setup-node@v5
2222
```
2323
2424
# Define Metadata

0 commit comments

Comments
 (0)