Skip to content

Commit f1ccb0a

Browse files
committed
Update release script
1 parent e0cf192 commit f1ccb0a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
react_on_rails (16.0.1.rc.2)
4+
react_on_rails (16.0.1.rc.3)
55
addressable
66
connection_pool
77
execjs (~> 2.5)

rakelib/release.rake

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,24 @@ task :release, %i[gem_version dry_run tools_install] do |_t, args|
6969
# Disable lefthook pre-commit hooks during release to prevent file modifications
7070
sh_in_dir(gem_root, "LEFTHOOK=0 #{release_it_command}")
7171

72+
# Commit the Gemfile.lock changes made by release-it before gem release
73+
unless is_dry_run
74+
sh_in_dir(gem_root, "git add Gemfile.lock")
75+
sh_in_dir(gem_root, "git commit -m 'Update Gemfile.lock for version #{gem_version}'")
76+
end
77+
7278
# Release the new gem version
7379

7480
puts "Carefully add your OTP for Rubygems. If you get an error, run 'gem release' again."
7581
sh_in_dir(gem_root, "gem release") unless is_dry_run
7682

7783
msg = <<~MSG
78-
Once you have successfully published, run these commands to update Gemfile.lock and CHANGELOG.md:
84+
Once you have successfully published, run these commands to update CHANGELOG.md:
7985
80-
bundle install
8186
bundle exec rake update_changelog
8287
cd #{dummy_app_dir}; bundle update react_on_rails
8388
cd #{gem_root}
84-
git commit -a -m 'Update Gemfile.lock and CHANGELOG.md'
89+
git commit -a -m 'Update CHANGELOG.md and spec/dummy Gemfile.lock'
8590
git push
8691
MSG
8792
puts msg

0 commit comments

Comments
 (0)