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 <adam0white@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Adam White
2026-03-12 09:01:30 -05:00
committed by GitHub
parent ecf28ddc73
commit e3914758a4
5 changed files with 334 additions and 240 deletions
+8 -8
View File
@@ -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"