Skip to content

Pin npm to 11.x for Node 20 trusted publishing - #190

Merged
MikeAlhayek merged 1 commit into
mainfrom
claude/npm-oidc-node20-fix
Sep 14, 2026
Merged

MikeAlhayek merged 1 commit into
mainfrom
claude/npm-oidc-node20-fix

Conversation

@MikeAlhayek

Copy link
Copy Markdown
Member

Follow-up to #189. The first manual Publish npm run failed at the npm-upgrade step:

npm error code EBADENGINE
npm error notsup Not compatible with your version of node/npm: npm@12.0.2
npm error notsup Required: {"node":"^22.22.2 || ^24.15.0 || >=26.0.0"}
npm error notsup Actual:   {"npm":"10.8.2","node":"v20.20.2"}

npm@latest is now npm 12, which dropped Node 20 support. Pin the global upgrade to npm@11 — still Node 20 compatible and includes OIDC trusted publishing (>= 11.5.1). OIDC auth wiring itself was fine; the run failed before reaching publish.

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has merge conflicts. Please resolve those before requesting a review.

npm@latest is now npm 12, which requires Node >= 22 and fails on the Node 20
runner with EBADENGINE. Pin the global upgrade to npm@11, which still supports
Node 20 and provides OIDC trusted publishing (>= 11.5.1).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@MikeAlhayek
MikeAlhayek force-pushed the claude/npm-oidc-node20-fix branch from 08e4652 to c07729c Compare September 14, 2026 22:58
@MikeAlhayek
MikeAlhayek merged commit 0ab6761 into main Sep 14, 2026
9 checks passed
@MikeAlhayek
MikeAlhayek deleted the claude/npm-oidc-node20-fix branch September 14, 2026 22:59
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.

1 participant