ci: stackblitz 更新を release-tag workflow の後続ジョブに統合#57
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 <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.
Summary
stackblitz.yamlを削除し、update-stackblitzをrelease-tag.yaml内の後続ジョブとして統合update-stackblitzジョブはneeds: release-tag+if: created == 'true'で新規タグ作成時のみ実行GITHUB_REF_NAMEからrelease-tagジョブのversionoutput に変更設計の背景
stackblitz.yamlはon: release: types: [published]でトリガーされていたが、これは PR #55 で解消した npm publish と全く同じ問題を抱えていた。release-tagworkflow はGITHUB_TOKENで GitHub release を作成しており、GITHUB_TOKENが起こしたイベントは他 workflow をトリガーしない仕様のため、update-stackblitzは実際には発火していなかった。publish と同様に同一 workflow の後続ジョブ(
needs: release-tag)にすればクロス workflow トリガー制約の対象外となり、release 後に確実に実行される。あわせて、バージョン取得を
GITHUB_REF_NAMEからrelease-tagジョブのversionoutput に変更した。release-tag.yamlは push トリガーのためGITHUB_REF_NAMEはmainとなり、元のロジックでは正しいバージョンを取得できないため。Test plan
package.jsonの version 変更を main に push し、tag/release 作成後にupdate-stackblitzジョブが走ることを確認stackblitzブランチの examples/*/package.json の emiel 依存が^<version>に書き換わっていることを確認update-stackblitzジョブがスキップされることを確認🤖 Generated with Claude Code