Conversation
Updated Node.js version from 22 to 20 in CI workflow.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts the Node.js version used in the GitHub Actions workflow, specifically in the npm publish (latest) job, to run on Node 20.
Changes:
- Update
npm-publish-latestjob to use Node.js 20 (previously 22) when setting up Node before publishing.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
78
to
82
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 22 | ||
| node-version: 20 # required for OIDC npm@latest | ||
| registry-url: 'https://registry.npmjs.org' | ||
| - name: Update npm to latest (required for OIDC) |
There was a problem hiding this comment.
The PR title/description says CI is moving from Node 22 to 20, but this change only updates the npm-publish-latest job. The main build job still runs a 22/24 matrix (and the prerelease workflow input still uses 22), so CI will continue to run on Node 22/24. Either update those other Node version settings for consistency, or adjust the PR title/description to reflect that only the publish job is using Node 20.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Updated Node.js version from 22 to 20 in CI workflow.