Skip to content

npm@latest and node 20#234

Merged
bourgeoa merged 1 commit intomainfrom
npm
Apr 7, 2026
Merged

npm@latest and node 20#234
bourgeoa merged 1 commit intomainfrom
npm

Conversation

@bourgeoa
Copy link
Copy Markdown
Contributor

@bourgeoa bourgeoa commented Apr 7, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 7, 2026 22:22
@bourgeoa bourgeoa enabled auto-merge April 7, 2026 22:22
@bourgeoa bourgeoa merged commit 4ba317f into main Apr 7, 2026
8 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the GitHub Actions publish workflow to use Node 20 and upgrade npm during publish, affecting how releases are published to the npm registry.

Changes:

  • Switch npm-publish-latest job from Node 22 to Node 20.
  • Change npm upgrade step from npm@10 to npm@latest during publish.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +75 to +76
- name: Update npm to latest (required for OIDC)
run: npm install -g npm@latest
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npm install -g npm@latest makes the publish workflow non-deterministic and can start failing without code changes (e.g., when a new npm major drops that changes behavior or requires a newer Node engine than v20). Please pin npm to a specific major/version range known to support the chosen Node version (e.g., npm@10 or npm@^10) or keep Node aligned with the npm version you need for OIDC.

Suggested change
- name: Update npm to latest (required for OIDC)
run: npm install -g npm@latest
- name: Update npm to v10 (required for OIDC)
run: npm install -g npm@10

Copilot uses AI. Check for mistakes.
- uses: actions/setup-node@v6
with:
node-version: 22
node-version: 20
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This switches npm-publish-latest to Node 20, but the CI matrix builds/tests on Node 22/24 and .nvmrc pins v22.x. That means the publish path now runs on an untested Node version and is inconsistent with the repo’s declared Node version. Consider aligning the publish job with the tested/.nvmrc version, or add Node 20 to the build matrix (and ensure any tooling used during publish is compatible).

Suggested change
node-version: 20
node-version: 22

Copilot uses AI. Check for mistakes.
@bourgeoa bourgeoa deleted the npm branch April 13, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants