fix(ci): pin npm to 11.x in release workflow#1526
Merged
Merged
Conversation
|
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.
Related Issue
N/A — unblocks the 0.23.4 release.
Problem
The Release workflow failed to publish
@moonshot-ai/kimi-code@0.23.4to npm (failed run). Thepnpm changeset publishstep invokesnpm publish, which errored with:npm@latestis now 12.0.0, which ships with a packaging bug that dropssigstore(used by npm provenance / OIDC trusted publishing) from the global install — see npm/cli#9722. The "Upgrade npm for Trusted Publishing" step pulls@latest, so it picked up the broken 12.0.0.What changed
Pin the npm upgrade to the 11.x line (
npm install -g npm@11) instead of@latest. npm 11.x (>= 11.5.1) already supports trusted publishing and is unaffected by the 12.0.0 sigstore bug.Checklist
gen-changesetsskill, or this PR needs no changeset. (No changeset — workflow change, not bundled)gen-docsskill, or this PR needs no doc update. (N/A — workflow change)