From 00b5018398eb68e0135d1a96e78271c8eaf53c70 Mon Sep 17 00:00:00 2001 From: Roman <4456572+sturman@users.noreply.github.com> Date: Mon, 6 Apr 2026 10:02:59 +0300 Subject: [PATCH] feat!: upgrade Node.js version to 24 across configuration files --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 4 ++-- .github/workflows/upgrade-main.yml | 2 +- .projen/deps.json | 2 +- .projenrc.ts | 6 ++++-- action.yml | 2 +- package-lock.json | 18 +++++++++--------- package.json | 4 ++-- 8 files changed, 21 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0043e64..5c6ba55 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: "20" + node-version: "24" - name: Install dependencies run: npm install - name: build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 357d299..6cda9d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: "20" + node-version: "24" - name: Install dependencies run: npm ci - name: release @@ -70,7 +70,7 @@ jobs: steps: - uses: actions/setup-node@v4 with: - node-version: "20" + node-version: "24" - name: Download build artifacts uses: actions/download-artifact@v4 with: diff --git a/.github/workflows/upgrade-main.yml b/.github/workflows/upgrade-main.yml index 2742d21..6578bde 100644 --- a/.github/workflows/upgrade-main.yml +++ b/.github/workflows/upgrade-main.yml @@ -21,7 +21,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: "20" + node-version: "24" - name: Install dependencies run: npm ci - name: Upgrade dependencies diff --git a/.projen/deps.json b/.projen/deps.json index 47ae904..752a59a 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -23,7 +23,7 @@ }, { "name": "@types/node", - "version": "^20", + "version": "^24", "type": "build" }, { diff --git a/.projenrc.ts b/.projenrc.ts index fb894fd..e352f2e 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -114,7 +114,8 @@ const project = new GitHubActionTypeScriptProject({ }, }, runs: { - using: RunsUsing.NODE_20, + // TODO: update to RunsUsing.NODE_24 after PR https://github.com/projen/projen-github-action-typescript/pull/529 is merged and released + using: 'node24' as RunsUsing, main: 'dist/index.js', }, }, @@ -158,7 +159,8 @@ const project = new GitHubActionTypeScriptProject({ jestOptions: { configFilePath: 'jest.config.json', }, - minNodeVersion: '20', + minNodeVersion: '24', + workflowNodeVersion: '24', }); const projenProject = project as unknown as typescript.TypeScriptProject; diff --git a/action.yml b/action.yml index b2cae8e..9daa556 100644 --- a/action.yml +++ b/action.yml @@ -3,7 +3,7 @@ name: cdk-diff-action description: The CDK Diff GitHub Action allows you to run CDK diff as part of your CI/CD workflow. runs: - using: node20 + using: node24 main: dist/index.js author: Cory Hall branding: diff --git a/package-lock.json b/package-lock.json index 4d94352..272161e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "@types/fs-extra": "^11.0.4", "@types/jest": "^29.5.14", "@types/mock-fs": "^4", - "@types/node": "^20", + "@types/node": "^24", "@typescript-eslint/eslint-plugin": "^8", "@typescript-eslint/parser": "^8", "@vercel/ncc": "^0.38.3", @@ -47,7 +47,7 @@ "typescript": "^5.9.2" }, "engines": { - "node": ">= 20" + "node": ">= 24" } }, "node_modules/@actions/core": { @@ -8601,13 +8601,13 @@ } }, "node_modules/@types/node": { - "version": "20.19.11", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.11.tgz", - "integrity": "sha512-uug3FEEGv0r+jrecvUUpbY8lLisvIjg6AAic6a2bSP5OEOLeJsDSnvhCDov7ipFFMXS3orMpzlmi0ZcuGkBbow==", + "version": "24.12.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.12.2.tgz", + "integrity": "sha512-A1sre26ke7HDIuY/M23nd9gfB+nrmhtYyMINbjI1zHJxYteKR6qSMX56FsmjMcDb3SMcjJg5BiRRgOCC/yBD0g==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~6.21.0" + "undici-types": "~7.16.0" } }, "node_modules/@types/normalize-package-data": { @@ -18970,9 +18970,9 @@ } }, "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", "dev": true, "license": "MIT" }, diff --git a/package.json b/package.json index 434b028..5d20936 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@types/fs-extra": "^11.0.4", "@types/jest": "^29.5.14", "@types/mock-fs": "^4", - "@types/node": "^20", + "@types/node": "^24", "@typescript-eslint/eslint-plugin": "^8", "@typescript-eslint/parser": "^8", "@vercel/ncc": "^0.38.3", @@ -67,7 +67,7 @@ "fs-extra": "^11.3.1" }, "engines": { - "node": ">= 20" + "node": ">= 24" }, "main": "lib/index.js", "license": "Apache-2.0",