chore(deps): harmonize Node.js to 22.19.0 from CircleCI image #1450
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Situation
CircleCI, GitHub Actions and local environments are not tied to a consistent Node.js version. If Node.js
24.11.0Active LTS is used,npm installandmarkdown-link-checkbehave differently compared to running with Node.js20.xor22.x.The CircleCI image ubuntu-2404:2025.09.1 is the latest available Ubuntu 24.04 machine image from CircleCI and which is built on Node.js 22.19.0, released Aug 28, 2025. This version of Node.js is now in Maintenance LTS status.
GitHub Actions, using the runner image ubuntu-24.04, sets Node.js 20.19.5 as default. This version of Node.js was released on Sept 3, 2025 and is in Maintenance LTS status, with planned end-of-life on April 30, 2026.
The Node.js Active LTS version is 24.11.0.
22.19.020.19.5Differences and issues are seen if Node.js 24.11.0 is used:
20.19.522.19.024.11.0npm installpeeraddednpm run check:markdownnpm run format:checknpm run lintChange
To harmonize the use of Node.js related to using npm
dependenciesacross different environments:Add
.node-versionand.nvmrcwith22.19.0to the repo root, aligning with the version of Node.js defined by the CircleCI machine image ubuntu-2404:2025.09.1.Add actions/setup-node to each job of the GitHub Actions workflows
For consistency with other actions, use the
node20version (actions/setup-node@v4) until other actions are ready to be updated tonode24.Add information to the CONTRIBUTING.md document about using and maintaining the Node.js version in the repo.
Verification