fix(release): pin OIDC-compatible npm - #566
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
npm@latestpublisher install with exactnpm@11.19.1Root cause
Release run 35501402680 resolved
npm@latestto 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, includingrelayburn@4.1.0.Verification
^20.17.0 || >=22.9.0actionlintpasses for the changed workflow after excluding one pre-existing SC2086 warning that is also present onorigin/maingit diff --checkpassNote
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@latestresolves 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 ofnpm@latest, with a short comment documenting the engine mismatch. The step is renamed to Install OIDC-capable npm and adds atest "$(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.