diff --git a/.github/linters/actionlint.yml b/.github/linters/actionlint.yml new file mode 100644 index 0000000..b7c934f --- /dev/null +++ b/.github/linters/actionlint.yml @@ -0,0 +1,6 @@ +# See: https://github.com/rhysd/actionlint/blob/v1.7.7/docs/config.md + +paths: + .github/workflows/**/*.{yml,yaml}: + ignore: + - invalid runner name "node24" diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 246f80a..9b15cd0 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -44,5 +44,6 @@ jobs: DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} VALIDATE_TYPESCRIPT_STANDARD: false + VALIDATE_TYPESCRIPT_ES: false VALIDATE_JSCPD: false FILTER_REGEX_EXCLUDE: .*/licenses\.txt$ diff --git a/.node-version b/.node-version index 1cc433a..84e5de6 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -20.6.0 +24.4.0 \ No newline at end of file diff --git a/action.yml b/action.yml index 1e42735..6077618 100644 --- a/action.yml +++ b/action.yml @@ -20,5 +20,5 @@ outputs: description: 'The sha256 of the referrer index uploaded to GHCR. This is not present if the package is not attested, e.g. in enterprise environments.' runs: - using: node20 + using: node24 main: dist/index.js diff --git a/package-lock.json b/package-lock.json index 560b92a..1821fab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,7 @@ "@types/axios": "^0.14.0", "@types/jest": "^29.5.12", "@types/minimist": "^1.2.5", - "@types/node": "^22.0.0", + "@types/node": "^24.1.0", "@types/tar": "^6.1.13", "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.21.0", @@ -44,7 +44,7 @@ "typescript": "^5.5.4" }, "engines": { - "node": ">=20" + "node": ">=24" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -1900,11 +1900,12 @@ "dev": true }, "node_modules/@types/node": { - "version": "22.0.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.0.0.tgz", - "integrity": "sha512-VT7KSYudcPOzP5Q0wfbowyNLaVR8QWUdw+088uFWwfvpY6uCWaXpqV6ieLAu9WBcnTa7H4Z5RLK8I5t2FuOcqw==", + "version": "24.1.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.1.0.tgz", + "integrity": "sha512-ut5FthK5moxFKH2T1CUOC6ctR67rQRvvHdFLCD2Ql6KXmMuCrjsSsRI9UsLCm9M18BMwClv4pn327UvB7eeO1w==", + "license": "MIT", "dependencies": { - "undici-types": "~6.11.1" + "undici-types": "~7.8.0" } }, "node_modules/@types/readdir-glob": { @@ -8359,9 +8360,10 @@ } }, "node_modules/undici-types": { - "version": "6.11.1", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.11.1.tgz", - "integrity": "sha512-mIDEX2ek50x0OlRgxryxsenE5XaQD4on5U2inY7RApK3SOJpofyw7uW2AyfMKkhAxXIceo2DeWGVGwyvng1GNQ==" + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", + "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", + "license": "MIT" }, "node_modules/unique-filename": { "version": "3.0.0", diff --git a/package.json b/package.json index a1a4e8d..91bbcd7 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,9 @@ "version": "0.0.0", "author": "", "private": true, + "engines": { + "node": ">=24" + }, "homepage": "https://github.com/actions/typescript-action", "repository": { "type": "git", @@ -20,9 +23,6 @@ "exports": { ".": "./dist/index.js" }, - "engines": { - "node": ">=20" - }, "scripts": { "bundle": "npm run format:write && npm run package", "ci-test": "jest", @@ -83,7 +83,7 @@ "@types/axios": "^0.14.0", "@types/jest": "^29.5.12", "@types/minimist": "^1.2.5", - "@types/node": "^22.0.0", + "@types/node": "^24.1.0", "@types/tar": "^6.1.13", "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.21.0",