Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: リリース CI のタグによる実行条件を latest に変更 #212

Merged
merged 1 commit into from
May 26, 2022

Conversation

MikuroXina
Copy link
Collaborator

Type of Change:

CI の修正

Cause of the Problem (問題の原因)

v*.*.* の形式のタグを push する場合でも CI が動作するようにしていたが, この場合に CI でもタグを作成しようとしてしまうためリリースに失敗していた.

Dealing with Problems (問題への対処)

semantic-release の設定を変更して, 手動作成したタグをそのまま利用してリリースできるようにすることを考えた. しかし, この場合だと間違ったバージョンのタグを作成した場合に混乱が生じる. それだけでなく, 正しいバージョンのタグを発行する手間が生じる.

Details of implementation (実施内容)

latest タグを push したときに実行するように条件を変更した. これにより, どの場合でも semantic-release によって正しいバージョンのタグとリリースが生成される.

Additional Information (追加情報)

この方法では, latest タグが既に存在している場合に以下の手順で上書きしなければならない.

  1. このタグをローカルで更新する. git tag -f latest
  2. タグを forced-push する. git push -f origin latest

Changed into to be run on push `latest` tag
@MikuroXina MikuroXina requested a review from m1sk9 May 26, 2022 08:51
@MikuroXina MikuroXina self-assigned this May 26, 2022
@MikuroXina MikuroXina changed the title ci: リリース CI のタグによる実行条件 latest に変更 ci: リリース CI のタグによる実行条件を latest に変更 May 26, 2022
@MikuroXina MikuroXina merged commit 78527bc into main May 26, 2022
@MikuroXina MikuroXina deleted the ci/release-on-push-latest branch May 26, 2022 11:16
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.13.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

2 participants