Conversation
Node 20 reaches EOL on 2026-04-30. Move to Node 22 LTS (EOL 2027-04-30) across .nvmrc, CI workflows, and package.json engines. The npm engine constraint is removed since Node 22 ships with a compatible npm version.
There was a problem hiding this comment.
Pull request overview
Updates the repo’s Node.js baseline to Node 22 LTS to keep local development and CI aligned with the supported runtime as Node 20 approaches EOL.
Changes:
- Bump the required Node version in
package.jsonengines to>=22and drop the explicitnpmengine constraint. - Update
.nvmrcto Node 22. - Update GitHub Actions workflows to run tests and release builds on Node 22.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| package.json | Updates Node engine requirement to Node 22 and removes npm engine constraint. |
| .nvmrc | Updates local Node version target to 22. |
| .github/workflows/test.yml | Runs JS, lint, and E2E workflows using Node 22. |
| .github/workflows/release.yml | Builds release artifacts using Node 22. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
The other three jobs were already updated; this was the remaining hardcoded instance.
There was a problem hiding this comment.
Pull request overview
Updates the repository’s JavaScript toolchain baseline to Node.js 22 LTS and aligns local development and GitHub Actions CI to use a single Node version source of truth.
Changes:
- Bump Node engine requirement to
>=22and remove the explicitnpmengine constraint. - Update
.nvmrcto Node 22. - Switch CI workflows to read the Node version from
.nvmrcviaactions/setup-node’snode-version-file.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Updates engines to require Node 22+ and drops the npm engine constraint. |
| .nvmrc | Sets local Node version to 22. |
| .github/workflows/test.yml | Uses .nvmrc for Node setup across test/lint/e2e jobs to prevent version drift. |
| .github/workflows/release.yml | Uses .nvmrc for Node setup in the release build workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
.nvmrc, CI workflows, andpackage.jsonenginesnpmengine constraint — Node 22 ships with a compatible versionpackage-lock.jsonwith Node 22Node 20 reaches EOL on 2026-04-30. Node 22 LTS is supported until 2027-04-30.
Test plan
npm ciinstalls cleanly on Node 22npm test)npm run test:e2e)