Skip to content

ci: stackblitz 更新を release-tag workflow の後続ジョブに統合#57

Merged
tomoemon merged 1 commit into
mainfrom
ci/merge-stackblitz-into-release-tag
May 17, 2026
Merged

ci: stackblitz 更新を release-tag workflow の後続ジョブに統合#57
tomoemon merged 1 commit into
mainfrom
ci/merge-stackblitz-into-release-tag

Conversation

@tomoemon

Copy link
Copy Markdown
Owner

Summary

  • stackblitz.yaml を削除し、update-stackblitzrelease-tag.yaml 内の後続ジョブとして統合
  • update-stackblitz ジョブは needs: release-tag + if: created == 'true' で新規タグ作成時のみ実行
  • バージョン取得を GITHUB_REF_NAME から release-tag ジョブの version output に変更
  • publish / stackblitz 共通の経緯コメントに整理

設計の背景

stackblitz.yamlon: release: types: [published] でトリガーされていたが、これは PR #55 で解消した npm publish と全く同じ問題を抱えていた。release-tag workflow は GITHUB_TOKEN で GitHub release を作成しており、GITHUB_TOKEN が起こしたイベントは他 workflow をトリガーしない仕様のため、update-stackblitz は実際には発火していなかった。

publish と同様に同一 workflow の後続ジョブ(needs: release-tag)にすればクロス workflow トリガー制約の対象外となり、release 後に確実に実行される。

あわせて、バージョン取得を GITHUB_REF_NAME から release-tag ジョブの version output に変更した。release-tag.yaml は push トリガーのため GITHUB_REF_NAMEmain となり、元のロジックでは正しいバージョンを取得できないため。

Test plan

  • package.json の version 変更を main に push し、tag/release 作成後に update-stackblitz ジョブが走ることを確認
  • stackblitz ブランチの examples/*/package.json の emiel 依存が ^<version> に書き換わっていることを確認
  • 同一バージョンのまま push した場合に update-stackblitz ジョブがスキップされることを確認

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tomoemon
tomoemon merged commit 6d149b9 into main May 17, 2026
1 check passed
@tomoemon
tomoemon deleted the ci/merge-stackblitz-into-release-tag branch May 17, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant