Skip to content

ci: release every main push with an auto-derived semver tag - #250

Merged
h13 merged 1 commit into
mainfrom
ci/auto-release
Dec 1, 2026
Merged

h13 merged 1 commit into
mainfrom
ci/auto-release

Conversation

@h13

@h13 h13 commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Closes #249

Summary

main への push ごとに release.yml が semver タグ + GitHub Release を自動作成する。bump は前タグ以降の conventional commit type から導出(!/BREAKING → major、feat: → minor、それ以外 → patch)。初回実行で v1.0.0 が切られる。

これにより:

  • 消費側のピンが @<sha> # vX.Y.Z 形式になり、zizmor の ref-version-mismatch が安定(renovate-config#76 の再発防止)
  • renovate がタグを追跡してピンを自動 bump できるようになる

設計メモ(セキュリティ)

  • コミットメッセージはファイルに落として grep するだけ(シェル展開に乗せない)
  • checkout は persist-credentials: false、トークンはタグ作成ステップの env のみ(タグ/リリースは gh release create 一発、git push なし)
  • GITHUB_TOKEN によるタグ作成は他のワークフローを起動しない(ループなし)
  • 同時 push は concurrency group で直列化

マージ後の作業(Claude が実施)

  1. release.yml の初回実行(v1.0.0)を確認
  2. renovate-config と dotfiles テンプレートのピンを # v1.0.0 形式に更新する PR
  3. 旧 v1 タグ(8472a07、参照ゼロ)を削除

Consumers pin workflows/actions by SHA, but without tags the version
comments had nothing stable to name — zizmor's ref-version-mismatch
fired in consumer repos whenever main moved, and renovate had no
versions to bump the pins against (renovate-config#76). The bump is
derived from conventional commit types since the last tag (breaking ->
major, feat -> minor, otherwise patch); the first run tags v1.0.0.

Closes #249
@h13
h13 merged commit 146f7b0 into main Dec 1, 2026
3 checks passed
@h13
h13 deleted the ci/auto-release branch December 1, 2026 10:33
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.

release tags for the reusable workflows and actions

1 participant