Conversation
Updated Node.js version from 22 to 20 for compatibility with npm@latest.
There was a problem hiding this comment.
Pull request overview
This PR updates the Node.js version used in the npm-publish-latest GitHub Actions job, aiming to use Node 20 (not 22) due to npm@latest compatibility concerns during publishing.
Changes:
- Changed
actions/setup-nodeversion in thenpm-publish-latestjob from Node 22 to Node 20.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 22 | ||
| node-version: 20 # for 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 suggest the CI workflow is moving from Node 22 to Node 20, but this change only updates the Node version for the npm-publish-latest job. The build job matrix still runs on 22/24 and the publish artifact is still produced only when matrix.node-version == 22 (and npm-publish-dev still uses 22). Either update the workflow consistently (matrix + artifact condition + publish-dev) or adjust the PR title/description to clarify that only the release publishing job is pinned to Node 20.
Updated Node.js version from 22 to 20 for compatibility with npm@latest.