[WIP] Upgrade project to support Node.js 22 and 24#939
[WIP] Upgrade project to support Node.js 22 and 24#939decyjphr merged 2 commits intomain-enterprisefrom
Conversation
Co-authored-by: decyjphr <57544838+decyjphr@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates this repository’s declared and CI/test Node.js versions to align with a move to Node.js 22 (and CI coverage for 24), spanning local dev, Docker builds, and GitHub Actions workflows.
Changes:
- Bumped
package.jsonengines.nodeto>= 22.0.0. - Updated CI workflow matrix to test on Node
22and24, and updated release workflows to use Node22.x. - Updated runtime/tooling pins for local/dev and container builds (
.nvmrc→v22,Dockerfile→node:22-alpine).
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| package.json | Raises minimum supported Node version via engines.node. |
| Dockerfile | Updates container base image to Node 22 Alpine. |
| .nvmrc | Aligns local nvm default to Node 22. |
| .github/workflows/rc-release.yml | Uses Node 22.x for the RC release workflow. |
| .github/workflows/node-ci.yml | Updates CI matrix to run on Node 22 and 24. |
| .github/workflows/create-release.yml | Uses Node 22.x for the release workflow. |
| .github/workflows/create-pre-release.yml | Uses Node 22.x for the pre-release workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| }, | ||
| "engines": { | ||
| "node": ">= 16.0.0" | ||
| "node": ">= 22.0.0" |
There was a problem hiding this comment.
PR description/checklist says all Node.js version references were identified/updated, but there are still hard-coded Node 16 runtime/version references elsewhere (e.g. .github/actions/publish-docker/action.yml uses node-version: 16.x, and template.yml uses Runtime: nodejs16.x; serverless.yml still pins nodejs20.x). Either update those references as part of this PR or adjust the PR scope/description so it’s accurate.
node-ci.ymlmatrix from18, 20→22, 24.nvmrcfromv20→v22package.jsonengines from>= 16.0.0→>= 22.0.0Dockerfilefromnode:20-alpine→node:22-alpinerc-release.ymlnode-version from16.x→22.xcreate-release.ymlnode-version from16.x→22.xcreate-pre-release.ymlnode-version from16.x→22.x✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.