Repository navigation
ci(publish): 公開結果の確認で trustedPublisher を取り直す - #33
Merged
Merged
Conversation
公開の直後は npm が古い応答を返し、_npmUser.trustedPublisher が欠けることがある。 最終判定が trustedPublisher の欠落だけで落ちるときは、版と dist-tag の待ちと同じ上限の中で 間隔を置いて取り直す。使い切ったら従来どおり error で止める。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
概要
publish.ymlの confirm ジョブ(公開結果の確認)は、版と dist-tag が registry に見えるまで待ったあと、npm view <name>@<version> _npmUser.trustedPublisher --jsonを 1 回だけ取って最終判定していました。公開の直後は npm が古い応答を返すことがあり、公開済みでも「trustedPublisher が付いていない」で失敗することがありました。変更
CONFIRM_INTERVAL_SECONDSの間隔を置いて取り直します。経過時間は版と dist-tag の待ちと同じ上限(CONFIRM_WAIT_SECONDS)、回数も同じ上限ですtimeout-minutes: 45(2700 秒)に収まります変更は
.github/workflows/publish.ymlの 1 ファイルだけです。repo ごとの設定(CI_WORKFLOW_FILE: test.yml・RELEASE_CHECK: pnpm run prepublishOnly)は変えていません。確かめたこと
🤖 Generated with Claude Code