そんなに頻繁にやるわけじゃなくて忘れるから、自分用にメモしておく
CHANGELOG.mdの編集、バージョンの変更、リリースするまでのやり方
対象のコードがmain(or master)ブランチにマージされている前提
独学だからこれでいいのかわからない
手順 🔗
1. CHANGELOG.mdの編集 🔗
- [full changelog](http://github.com/ytkg/switchbot/compare/v0.4.0...main)
+ [full changelog](http://github.com/ytkg/switchbot/compare/v0.5.0...main)
+
+ ## v0.5.0
+ [full changelog](http://github.com/ytkg/switchbot/compare/v0.4.0...v0.5.0)
+
+ * Add Bot
+ * https://github.com/ytkg/switchbot/pull/9
copy
$ git add CHANGELOG.md
$ git commit -m 'Update CHANGELOG.md'
copy
2. バージョンの変更 🔗
module Switchbot
- VERSION = '0.4.0'
+ VERSION = '0.5.0'
end
copy
$ git add lib/switchbot/version.rb
$ git commit -m 'Bump version'
copy
3. リリース 🔗
$ bundle exec rake release
switchbot 0.5.0 built to pkg/switchbot-0.5.0.gem.
Tagged v0.5.0.
Pushed git commits and tags.
Pushing gem to https://rubygems.org...
Successfully registered gem: switchbot (0.5.0)
Pushed switchbot 0.5.0 to rubygems.org
copy