diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index d59927b..48847eb 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,5 +1,5 @@ -# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18, 16, 14, 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster -ARG VARIANT=16-bullseye +# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 22, 20, 18, 22-bullseye, 20-bullseye, 18-bullseye +ARG VARIANT=22-bullseye FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT} # [Optional] Uncomment this section to install additional OS packages. diff --git a/.devcontainer/base.Dockerfile b/.devcontainer/base.Dockerfile index 35b6654..2b9ce16 100644 --- a/.devcontainer/base.Dockerfile +++ b/.devcontainer/base.Dockerfile @@ -1,5 +1,5 @@ -# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18, 16, 14, 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster -ARG VARIANT=16-bullseye +# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 22, 20, 18, 22-bullseye, 20-bullseye, 18-bullseye +ARG VARIANT=22-bullseye FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT} # Install tslint, typescript. eslint is installed by javascript image diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 4978099..22a2b5c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,11 +4,11 @@ "name": "Node.js & TypeScript", "build": { "dockerfile": "Dockerfile", - // Update 'VARIANT' to pick a Node version: 18, 16, 14. - // Append -bullseye or -buster to pin to an OS version. + // Update 'VARIANT' to pick a Node version: 22, 20, 18. + // Append -bullseye to pin to an OS version. // Use -bullseye variants on local on arm64/Apple Silicon. "args": { - "VARIANT": "16-bullseye" + "VARIANT": "22-bullseye" } }, diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 797816c..ffee90f 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -10,6 +10,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: actions/setup-node@v4 + with: + node-version: '22' - run: | npm install npm run all diff --git a/action.yml b/action.yml index 5201c37..7702af3 100644 --- a/action.yml +++ b/action.yml @@ -17,5 +17,5 @@ inputs: description: 'Specify the behavior of getting the variable. first_match, overwrite and fill are valid values.' default: 'first_match' runs: - using: 'node16' + using: 'node22' main: 'dist/index.js' diff --git a/package.json b/package.json index 81feb46..6ee8a90 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ }, "devDependencies": { "@types/jest": "^29.2.0", - "@types/node": "^18.11.3", + "@types/node": "^22.0.0", "@typescript-eslint/parser": "^5.40.1", "@vercel/ncc": "^0.34.0", "eslint": "^8.26.0",