Skip to content

fix(ci): Pin npm to v11 for Node 20 compatibility in release workflow - #1097

Merged
avallete merged 1 commit into
masterfrom
claude/release-pipeline-failure-vsz7bs
Aug 6, 2026
Merged

fix(ci): Pin npm to v11 for Node 20 compatibility in release workflow#1097
avallete merged 1 commit into
masterfrom
claude/release-pipeline-failure-vsz7bs

Conversation

@avallete

@avallete avallete commented Aug 6, 2026

Copy link
Copy Markdown
Member

Summary

Updates the npm version constraint in the release workflow to pin to npm v11 instead of always installing the latest version. This ensures compatibility with Node 20, which is the minimum supported version for this project.

Changes

  • Changed npm install -g npm@latest to npm install -g npm@11 in the release workflow
  • Added clarifying comment explaining that npm >= 11.5.1 is required for trusted publishing and npm 12 dropped Node 20 support

Details

The release workflow previously installed the latest npm version globally, which could cause issues since npm 12 dropped support for Node 20. By pinning to npm v11, we ensure the workflow uses a version that:

  • Supports Node 20 (the project's minimum supported version per CLAUDE.md)
  • Includes npm >= 11.5.1 which is needed for trusted publishing
  • Remains stable and compatible with the project's CI/CD pipeline

https://claude.ai/code/session_018Qan7ZWehTJKYRDSRSEDqk

npm 12 dropped support for Node 20 (requires ^22.22.2 || ^24.15.0 ||
>=26.0.0), so 'npm install -g npm@latest' now fails on the Node 20
runner pinned by .nvmrc. Pin to npm@11, which supports Node 20 and
still provides trusted publishing (added in npm 11.5.1).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Qan7ZWehTJKYRDSRSEDqk
@avallete
avallete requested review from a team and soedirgo as code owners August 6, 2026 09:54
@avallete
avallete enabled auto-merge (squash) August 6, 2026 09:56
@avallete avallete changed the title Pin npm to v11 for Node 20 compatibility in release workflow fix(ci): Pin npm to v11 for Node 20 compatibility in release workflow Aug 6, 2026
@avallete
avallete merged commit cf6e4aa into master Aug 6, 2026
9 checks passed
@avallete
avallete deleted the claude/release-pipeline-failure-vsz7bs branch August 6, 2026 09:58
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.

3 participants