support node 24

This commit is contained in:
Salman Muin Kayser Chishti
2025-07-31 23:37:22 +01:00
parent 8ff772deb1
commit 717b895584
10 changed files with 31 additions and 18 deletions
+4 -4
View File
@@ -24,10 +24,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set Node.js 20.x
- name: Set Node.js 24.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 24.x
# Need root node_modules because certain npm packages like jest are configured for the entire repository and it won't be possible
# without these to just compile the artifacts package
@@ -79,10 +79,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set Node.js 20.x
- name: Set Node.js 24.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 24.x
# Need root node_modules because certain npm packages like jest are configured for the entire repository and it won't be possible
# without these to just compile the artifacts package
+2 -2
View File
@@ -20,10 +20,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set Node.js 20.x
- name: Set Node.js 24.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 24.x
- name: npm install
run: npm install
+2 -2
View File
@@ -24,10 +24,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set Node.js 20.x
- name: Set Node.js 24.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 24.x
# In order to save & restore cache from a shell script, certain env variables need to be set that are only available in the
# node context. This runs a local action that gets and sets the necessary env variables that are needed
+2 -2
View File
@@ -23,10 +23,10 @@ jobs:
run: |
rm "C:\Program Files\Git\usr\bin\tar.exe"
- name: Set Node.js 20.x
- name: Set Node.js 24.x
uses: actions/setup-node@v1
with:
node-version: 20.x
node-version: 24.x
# In order to save & restore cache from a shell script, certain env variables need to be set that are only available in the
# node context. This runs a local action that gets and sets the necessary env variables that are needed
+2 -2
View File
@@ -33,10 +33,10 @@ jobs:
- name: verify package exists
run: ls packages/${{ github.event.inputs.package }}
- name: Set Node.js 20.x
- name: Set Node.js 24.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 24.x
- name: npm install
run: npm install
+2 -1
View File
@@ -20,7 +20,8 @@ jobs:
# 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)
# 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
node-version: [18.x, 20.x]
# Node 24 is currently supported on actions runners
node-version: [18.x, 20.x, 24.x]
fail-fast: false
runs-on: ${{ matrix.runs-on }}
+5 -2
View File
@@ -1,6 +1,9 @@
{
"name": "root",
"private": true,
"private": true,
"engines": {
"node": ">=24.0.0"
},
"scripts": {
"audit-all": "lerna run audit-moderate",
"bootstrap": "lerna exec -- npm install",
@@ -17,7 +20,7 @@
},
"devDependencies": {
"@types/jest": "^29.5.4",
"@types/node": "^20.5.7",
"@types/node": "^24.1.0",
"@types/signale": "^1.4.1",
"concurrently": "^6.1.0",
"eslint": "^8.0.1",
+4 -1
View File
@@ -3,6 +3,9 @@
"version": "4.0.3",
"preview": true,
"description": "Actions cache lib",
"engines": {
"node": ">=24.0.0"
},
"keywords": [
"github",
"actions",
@@ -48,7 +51,7 @@
"semver": "^6.3.1"
},
"devDependencies": {
"@types/node": "^22.13.9",
"@types/node": "^24.1.0",
"@types/semver": "^6.0.0",
"@protobuf-ts/plugin": "^2.9.4",
"typescript": "^5.2.2"
+4 -1
View File
@@ -2,6 +2,9 @@
"name": "@actions/core",
"version": "1.11.1",
"description": "Actions core lib",
"engines": {
"node": ">=24.0.0"
},
"keywords": [
"github",
"actions",
@@ -40,6 +43,6 @@
"@actions/http-client": "^2.0.1"
},
"devDependencies": {
"@types/node": "^16.18.112"
"@types/node": "^24.1.0"
}
}
+4 -1
View File
@@ -2,6 +2,9 @@
"name": "@actions/http-client",
"version": "2.2.3",
"description": "Actions Http Client",
"engines": {
"node": ">=24.0.0"
},
"keywords": [
"github",
"actions",
@@ -39,7 +42,7 @@
"url": "https://github.com/actions/toolkit/issues"
},
"devDependencies": {
"@types/node": "20.7.1",
"@types/node": "24.1.0",
"@types/tunnel": "0.0.3",
"proxy": "^2.1.1",
"@types/proxy": "^1.0.1"