Skip to content

fix(release): pin OIDC-compatible npm - #566

Merged
kjgbot merged 1 commit into
mainfrom
codex/fix-npm-release-node
Sep 20, 2026
Merged

kjgbot merged 1 commit into
mainfrom
codex/fix-npm-release-node

Conversation

@kjgbot

@kjgbot kjgbot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • replace the floating npm@latest publisher install with exact npm@11.19.1
  • keep npm OIDC trusted-publisher support while remaining compatible with the workflow's pinned Node 22.14.0
  • assert the installed npm version before any package publish begins

Root cause

Release run 35501402680 resolved npm@latest to npm 12.0.2. npm 12 requires Node 22.22.2 or newer, so its engine check rejected the workflow's Node 22.14.0 and skipped every npm publish, including relayburn@4.1.0.

Verification

  • npm registry metadata confirms npm 11.19.1 supports Node ^20.17.0 || >=22.9.0
  • actionlint passes for the changed workflow after excluding one pre-existing SC2086 warning that is also present on origin/main
  • YAML parse and git diff --check pass

Note

Low Risk
Workflow-only change to the global npm version used before publish; no runtime or package code changes.

Overview
Fixes release publishes failing when npm@latest resolves to npm 12, which refuses to run on the workflow’s pinned Node 22.14.0.

The publish job now installs exact npm@11.19.1 (still ≥ 11.5.1 for OIDC trusted publishing) instead of npm@latest, with a short comment documenting the engine mismatch. The step is renamed to Install OIDC-capable npm and adds a test "$(npm --version)" = "11.19.1" guard before pack/publish runs.

Reviewed by Cursor Bugbot for commit 867f310. Bugbot is set up for automated code reviews on this repo. Configure here.

@coderabbitai

coderabbitai Bot commented Sep 20, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 02d2a51e-68a8-4ccf-89d1-1f632b530da4


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@kjgbot
kjgbot merged commit d2cbd6b into main Sep 20, 2026
6 checks passed
@kjgbot
kjgbot deleted the codex/fix-npm-release-node branch September 20, 2026 15:46
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