Skip to content

Commit c147370

Browse files
committed
Make the release script update Gemfile.lock
1 parent aefc545 commit c147370

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

rakelib/release.rake

+6-4
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,21 @@ task :release, %i[gem_version dry_run tools_install] do |_t, args|
7575
sh_in_dir(gem_root, "gem release") unless is_dry_run
7676

7777
msg = <<~MSG
78-
Once you have successfully published, run these commands to update the spec apps:
78+
Once you have successfully published, run these commands to update Gemfile.lock locally and in the spec apps:
7979
80+
bundle install
8081
cd #{dummy_app_dir}; bundle update react_on_rails
81-
cd #{gem_root}#{' '}
82-
git commit -a -m 'Update Gemfile.lock for spec app'
82+
cd #{gem_root}
83+
git commit -a -m 'Update Gemfile.lock'
8384
git push
8485
MSG
8586
puts msg
8687
end
8788
# rubocop:enable Metrics/BlockLength
8889

8990
task :test do
91+
bundle_install_in(gem_root)
9092
unbundled_sh_in_dir(gem_root, "cd #{dummy_app_dir}; bundle update react_on_rails")
91-
sh_in_dir(gem_root, "git commit -a -m 'Update Gemfile.lock for spec app'")
93+
sh_in_dir(gem_root, "git commit -a -m 'Update Gemfile.lock'")
9294
sh_in_dir(gem_root, "git push")
9395
end

0 commit comments

Comments
 (0)