Repository navigation
fix: publishワークフローのnpmをv11にピン留めしてsigstoreバグを回避 - #56
Merged
Merged
Conversation
npm 12.0.0 (現在のnpm@latest) は公開tarballにsigstoreが同梱されておらず、 npm publish --provenance が MODULE_NOT_FOUND で失敗する (npm/cli#9722)。 trusted publishing (OIDC) に必要な npm >= 11.5.1 を満たす npm@11 に ピン留めして回避する。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough公開ワークフローで使用するグローバル npm を Changesnpm 公開ワークフロー
Estimated code review effort: 2 (Simple) | ~5 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
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.
概要
npm publish --provenanceが以下のエラーで失敗する問題の修正です。原因
npm install -g npm@latestを実行しているnpm@latestが 12.0.0 に更新されたが、npm 12.0.0 の公開tarballにはルートのnode_modules/sigstore/が同梱されないパッケージングバグがある (npm/cli#9722)libnpmpublish/lib/provenance.jsのrequire('sigstore')が解決できず、--provenance付き publish がクラッシュする対応
npm install -g npm@latest→npm install -g npm@11にピン留め@latestに戻してよい🤖 Generated with Claude Code
Summary by CodeRabbit