ci: リリースをワークフロー実行から回せるようにする - #46
Merged
Merged
Conversation
リリースの版宣言(-SNAPSHOT の除去・版表記の同期・CHANGELOG の節起こし)は 手作業でしか行えず、公開ゲートの checkVersionMentions を満たす手順も どこにも残っていなかった。 workflow_dispatch で版宣言の PR を出し、その PR のマージでタグを付ける ワークフローを追加する。既定ブランチは PR 経由の更新を必須とするため、 版宣言は直接 push せず PR として出す。 GITHUB_TOKEN が作った PR には必須チェックが報告されないため、CI は ブランチ指定の workflow_dispatch で起こす(この経路は GITHUB_TOKEN でも 起動できる例外に当たる)。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
タグは release ワークフローが GITHUB_TOKEN で作るようになり、その push は ワークフローを起こさない。公開の起点を Release の公開という明示の操作へ移し、 CD 側での Release 作成は不要になったため落とす。 あわせて、公開後に出る版更新 PR の CI もブランチ指定で起こし、リリースの 一連の流れが手動の CI 起動を挟まずに完結するようにする。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 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.
概要
版宣言(
-SNAPSHOTの除去・版表記の同期・CHANGELOG の節起こし)が手作業でしか行えず、手順の記載も残っていない状態を解消する。releaseワークフローの実行を起点に、リリースが手動の CI 起動を挟まずに流れるようにする。リリースの流れ
releaseワークフローを実行v<版>が付くpublishが起動 → ゲート → Central デプロイ → Plugin Portal → Pages → 版更新 PR人手が要るのは 1・2・3 と、取り消せない 4 のみ。
変更
ci:release.ymlを追加。workflow_dispatchで版宣言 PR を出す(syncVersionMentions込み)/gradle.propertiesの変更が main へ入った時にタグを付けるci:publish.ymlの起点をrelease: publishedへ。CD 側の Release 作成は不要になったため削除。版更新 PR の CI も自動起動docs:設計上の判断
workflow_dispatchは GITHUB_TOKEN でも起動できる例外のため、これでブランチ指定で起こす検証
gradle.properties書換・CHANGELOG の節起こしと冪等性)をローカルで再現enumizerVersion=0.1.1を宣言した状態でsyncVersionMentions→checkVersionMentionsが pass することを実測(README 3 箇所・概要 1 箇所が現行版へ追随)未検証は GitHub 上での実走のみ(
releaseの dispatch とrelease: publishedの駆動)。なお現在の #45 は
gradle.propertiesだけを変更しており、そのままマージすると版表記が追随せず公開ゲートのcheckVersionMentionsで落ちます。🤖 Generated with Claude Code