Skip to content

chore(release-node-engine): pin release workflow npm to 11.x - #31

Merged
mayeedwin merged 1 commit into
mainfrom
chore/release-node-engine
Jul 30, 2026
Merged

chore(release-node-engine): pin release workflow npm to 11.x#31
mayeedwin merged 1 commit into
mainfrom
chore/release-node-engine

Conversation

@mayeedwin

Copy link
Copy Markdown
Owner

Summary

Fixes an EBADENGINE failure in the release workflow. The "Upgrade npm for Trusted Publishing" step installed npm@latest, which now resolves to npm 12 — and npm 12 dropped Node 20 support:

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"}

Fix

Pin the install to npm@^11.5.1:

  • 11.5.1 is the minimum version that supports npm Trusted Publishing (why we upgrade in the first place).
  • 11.x still supports Node 20 (matches .github/workflows/ci.yml and the release job's setup-node).
  • If we later bump the runner to Node 22, we can move to npm@^12 in a separate change.

Test plan

  • Actions → Release → Run workflow on this branch with dry_run: true. Confirms the pin resolves and npm publish --dry-run succeeds for all three packages.

🤖 Generated with Claude Code

npm 12 dropped Node 20 support and requires Node >= 22.22.2, so the
"Upgrade npm for Trusted Publishing" step in .github/workflows/release.yml
failed with EBADENGINE on the Node 20 runner.

Pin the install to npm@^11.5.1 — the minimum version that supports
Trusted Publishing, still compatible with Node 20.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@mayeedwin
mayeedwin merged commit 94877fc into main Jul 30, 2026
1 check passed
@mayeedwin
mayeedwin deleted the chore/release-node-engine branch July 30, 2026 11:52
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