From f7220e8369d55c031064a8ddf8a409d0a1038a9b Mon Sep 17 00:00:00 2001 From: Paramtamtam <7326800+tarampampam@users.noreply.github.com> Date: Mon, 3 Nov 2025 18:52:57 +0400 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20chore:=20Upgrade=20to=20No?= =?UTF-8?q?de=2024?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updates Node version to 24 in Dockerfile, GitHub Actions, and package.json. Removes the devcontainer.json file. --- .devcontainer/devcontainer.json | 17 ----------------- .github/workflows/test.yml | 4 ++-- Makefile | 2 +- action.yml | 2 +- package-lock.json | 14 ++++++++++++-- package.json | 5 ++++- 6 files changed, 20 insertions(+), 24 deletions(-) delete mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index 82f8006..0000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.base.schema.json", - "name": "default", - "image": "node:20-bookworm", - "features": { - "ghcr.io/devcontainers/features/github-cli:1": {}, - "ghcr.io/devcontainers/features/sshd:1": {} - }, - "customizations": { - "vscode": { - "extensions": [ - "streetsidesoftware.code-spell-checker" - ] - } - }, - "postCreateCommand": "npm install" -} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 86be118..f241bec 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - - {uses: actions/setup-node@v4, with: {node-version: 20, cache: 'npm'}} + - {uses: actions/setup-node@v4, with: {node-version-file: ./package.json, cache: 'npm'}} - run: npm install - run: npm run lint @@ -41,7 +41,7 @@ jobs: dist-changed: ${{ steps.state.outputs.changed }} steps: - uses: actions/checkout@v5 - - {uses: actions/setup-node@v4, with: {node-version: 20, cache: 'npm'}} + - {uses: actions/setup-node@v4, with: {node-version-file: ./package.json, cache: 'npm'}} - run: npm install - run: npm run build - uses: actions/upload-artifact@v5 diff --git a/Makefile b/Makefile index 0c4b1bd..035c0ab 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ .DEFAULT_GOAL := build .MAIN := build -NODE_IMAGE = node:20-alpine +NODE_IMAGE = node:24-alpine RUN_ARGS = --rm -v "$(shell pwd):/src:rw" \ -t --workdir "/src" \ -u "$(shell id -u):$(shell id -g)" \ diff --git a/action.yml b/action.yml index 47ce322..82da452 100644 --- a/action.yml +++ b/action.yml @@ -57,7 +57,7 @@ outputs: be rejected. Available for builds on branches and tags (always non-empty) runs: - using: node20 + using: node24 main: dist/index.js branding: diff --git a/package-lock.json b/package-lock.json index 0dc92c8..6ece2eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "jest": "^30.2.0" }, "engines": { - "node": "20" + "node": ">=24" } }, "node_modules/@actions/core": { @@ -109,6 +109,7 @@ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.27.7.tgz", "integrity": "sha512-BU2f9tlKQ5CAthiMIgpzAh4eDTLWo1mqi9jqE2OxMG0E/OM199VJt2q8BztTxpnSW0i1ymdwLXRJnYzvDM5r2w==", "dev": true, + "peer": true, "dependencies": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.27.1", @@ -1333,6 +1334,7 @@ "resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.1.tgz", "integrity": "sha512-dKYCMuPO1bmrpuogcjQ8z7ICCH3FP6WmxpwC03yjzGfZhj9fTJg6+bS1+UAplekbN2C+M61UNllGOOoAfGCrdQ==", "license": "MIT", + "peer": true, "dependencies": { "@octokit/auth-token": "^4.0.0", "@octokit/graphql": "^7.1.0", @@ -1895,6 +1897,7 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.0.tgz", "integrity": "sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw==", "dev": true, + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -2133,6 +2136,7 @@ "url": "https://github.com/sponsors/ai" } ], + "peer": true, "dependencies": { "caniuse-lite": "^1.0.30001726", "electron-to-chromium": "^1.5.173", @@ -2465,6 +2469,7 @@ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", "dev": true, + "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", @@ -5193,6 +5198,7 @@ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.27.7.tgz", "integrity": "sha512-BU2f9tlKQ5CAthiMIgpzAh4eDTLWo1mqi9jqE2OxMG0E/OM199VJt2q8BztTxpnSW0i1ymdwLXRJnYzvDM5r2w==", "dev": true, + "peer": true, "requires": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.27.1", @@ -6107,6 +6113,7 @@ "version": "5.2.1", "resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.1.tgz", "integrity": "sha512-dKYCMuPO1bmrpuogcjQ8z7ICCH3FP6WmxpwC03yjzGfZhj9fTJg6+bS1+UAplekbN2C+M61UNllGOOoAfGCrdQ==", + "peer": true, "requires": { "@octokit/auth-token": "^4.0.0", "@octokit/graphql": "^7.1.0", @@ -6507,7 +6514,8 @@ "version": "8.12.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.0.tgz", "integrity": "sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw==", - "dev": true + "dev": true, + "peer": true }, "acorn-jsx": { "version": "5.3.2", @@ -6676,6 +6684,7 @@ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.25.1.tgz", "integrity": "sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw==", "dev": true, + "peer": true, "requires": { "caniuse-lite": "^1.0.30001726", "electron-to-chromium": "^1.5.173", @@ -6910,6 +6919,7 @@ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", "dev": true, + "peer": true, "requires": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", diff --git a/package.json b/package.json index 829143c..61b2b65 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,10 @@ }, "rules": {} }, + "volta": { + "node": "24" + }, "engines": { - "node": "20" + "node": ">=24" } }