build: update action runtime to Node.js 24 (#176)
GitHub Actions is deprecating Node.js 20, with Node 24 becoming the default runner on June 2, 2026. This updates the action to run on the Node 24 runtime. Changes: - action.yml: node20 → node24 - esbuild target: node20 → node24 - @types/node: ^20 → ^24 - @actions/* deps bumped to their Node 24-compatible versions (highest CJS-compatible releases, avoiding the ESM-only latest) The @actions/* bumps also resolve the punycode deprecation warning (DEP0040) that Node 24 triggers with the older dependency chain. Closes #172 Co-authored-by: Adam White <[email protected]> Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Adam White
Claude Opus 4.6
parent
ecf28ddc73
commit
e3914758a4
+1
-1
@@ -57,7 +57,7 @@ outputs:
|
||||
description: If the version of Bun was cached.
|
||||
|
||||
runs:
|
||||
using: "node20"
|
||||
using: "node24"
|
||||
main: "dist/setup/index.js"
|
||||
post: "dist/cache-save/index.js"
|
||||
post-if: success()
|
||||
|
||||
+115
-65
File diff suppressed because one or more lines are too long
+132
-82
File diff suppressed because one or more lines are too long
+8
-8
@@ -18,22 +18,22 @@
|
||||
"author": "xHyroM",
|
||||
"scripts": {
|
||||
"format": "prettier --write src *.yml *.json *.md",
|
||||
"build": "esbuild --target=node20 --outfile=dist/setup/index.js --bundle --keep-names --minify --platform=node --format=cjs src/index.ts && esbuild --target=node20 --outfile=dist/cache-save/index.js --bundle --keep-names --minify --platform=node --format=cjs src/cache-save.ts",
|
||||
"build": "esbuild --target=node24 --outfile=dist/setup/index.js --bundle --keep-names --minify --platform=node --format=cjs src/index.ts && esbuild --target=node24 --outfile=dist/cache-save/index.js --bundle --keep-names --minify --platform=node --format=cjs src/cache-save.ts",
|
||||
"start": "npm run build && node dist/setup/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/cache": "^4.1.0",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/glob": "^0.4.0",
|
||||
"@actions/io": "^1.1.3",
|
||||
"@actions/tool-cache": "^2.0.2",
|
||||
"@actions/cache": "^5.0.5",
|
||||
"@actions/core": "^2.0.3",
|
||||
"@actions/exec": "^2.0.0",
|
||||
"@actions/glob": "^0.5.0",
|
||||
"@actions/io": "^2.0.0",
|
||||
"@actions/tool-cache": "^3.0.0",
|
||||
"@iarna/toml": "^2.2.5",
|
||||
"compare-versions": "^6.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "^1.3.10",
|
||||
"@types/node": "^20.19.35",
|
||||
"@types/node": "^24.0.0",
|
||||
"esbuild": "^0.19.12",
|
||||
"prettier": "^3.8.1",
|
||||
"typescript": "^4.9.5"
|
||||
|
||||
Reference in New Issue
Block a user