Skip to content

fix(publish): pin npm to 11.5.1 for OIDC trusted publishing#241

Merged
himerus merged 1 commit into
mainfrom
chore/pin-npm-1151
May 20, 2026
Merged

fix(publish): pin npm to 11.5.1 for OIDC trusted publishing#241
himerus merged 1 commit into
mainfrom
chore/pin-npm-1151

Conversation

@himerus

@himerus himerus commented May 20, 2026

Copy link
Copy Markdown
Contributor

Root cause

helixir@0.6.1 failed to publish with a misleading E404 'not in this registry'. Root cause: the publish job ran with npm 10.9.7 (Node 22 bundled), which cannot do OIDC trusted publishing. pnpm publish shells out to npm for the registry PUT, so npm version matters. The TP entry and OIDC token were correct; npm 10.9.7 just can't authenticate and returns 404 (npm/cli#8976).

Fix

Add npm install -g npm@11.5.1 --force after setup-node. Matches the working pattern from discord-ops and create-helix (both shipped via TP).

Publish flow

0.6.1 is already bumped on main (unpublished). Merging re-triggers the publish workflow → publishes 0.6.1 with the working npm. No new changeset needed.

Test plan

  • Merge → publishes helixir@0.6.1 via OIDC
  • npm view helixir@0.6.1 shows version + provenance attestation

@coderabbitai

coderabbitai Bot commented May 20, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@himerus has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 12 minutes and 33 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 482d82c3-aca5-482c-a3b1-d5d67cd57f7a

📥 Commits

Reviewing files that changed from the base of the PR and between 7b8b6d4 and 60d1ca1.

📒 Files selected for processing (1)
  • .github/workflows/publish.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/pin-npm-1151

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 and usage tips.

@himerus himerus merged commit 223dda1 into main May 20, 2026
17 checks passed
@himerus himerus deleted the chore/pin-npm-1151 branch May 20, 2026 03:20
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