Repository navigation
ci(publish): 公開の確認を別ジョブにして registry の反映を最大 30 分待つ - #32
Merged
Merged
Conversation
- 公開結果の確認を publish ジョブから外し、confirm ジョブにした。OIDC の
権限(id-token: write)を持つジョブを待ちで延ばさないため。confirm は
permissions: {} で、dry_run のときは走らない
- 確認の待ちを回数ではなく経過時間にした。上限は 1800 秒(ジョブの
timeout-minutes は 45)。1 回の npm view にも 20 秒の上限を付けた。
上限に達したときは、公開は済んでいることと後から照合することを出す
- run-name に dist_tag・期待する版・SHA・dry_run を出す
- dry_run の OIDC 交換の確認で、パッケージ名のスコープの区切りを npm CLI
と同じ小文字の %2f にした。失敗時は npm の応答の本文と、ID トークンの
claim(秘密ではない部分)を切り分けのために出す
- コメントの内部の参照を機能の言葉に直した
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kochizufan
had a problem deploying
to
npm-publish
November 4, 2026 16:39 — with
GitHub Actions
Failure
kochizufan
marked this pull request as ready for review
November 4, 2026 16:45
This branch had an error being deployed
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.
変更
.github/workflows/publish.ymlだけを変えます。confirm)にした: OIDC の権限(id-token: write)を持つpublishジョブを、registry の反映待ちで延ばさないためです。confirmはpermissions: {}で、needs: [verify, publish]、dry_runのときは走りません(skipped になります)。publishジョブのtimeout-minutes: 15は変えていません。timeout-minutesは 45)。1 回のnpm viewにも 20 秒の上限を付けました。上限に達したときは、公開は済んでいることと、後から照合することを出します。run-name: run の一覧に dist_tag・期待する版・SHA・dry_run が出ます。%2fにしました。失敗時は npm の応答の本文(先頭 500 字)と、ID トークンの claim(秘密ではない部分)を切り分けのために出します。成功時の本文は短命のトークンを含むので出さずに消します。追加した
uses:は既存と同じactions/setup-nodeの 40 桁の SHA です。確かめたこと
publish.ymlはworkflow_dispatchだけなので、この PR では走りません。test.ymlの CI を見ます。dry_run=trueで起動し、confirmが skipped になることとrun-nameの表示を確かめます。🤖 Generated with Claude Code