Skip to content

Commit 41d21ce

Browse files
justin808claude
andcommitted
Add simplified gem release process
This commit adds a streamlined release process for the cypress-on-rails gem, removing the npm package release steps that were present in the react_on_rails version. Key changes: - Add lib/tasks/release.rake with gem-only release automation - Add docs/RELEASE.md with comprehensive release documentation - Simplify process by removing release-it and npm publishing steps - Keep essential features: version bumping, git tagging, and gem publishing The release task handles: - Checking for uncommitted changes - Pulling latest changes - Bumping version using gem-release - Publishing to RubyGems with OTP support - Providing post-release instructions for CHANGELOG updates 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent a28e3d6 commit 41d21ce

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

lib/tasks/release.rake

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,19 @@ task :release, %i[gem_version dry_run] do |_t, args|
3232

3333
# See https://github.com/svenfuchs/gem-release
3434
sh_in_dir(gem_root, "git pull --rebase")
35-
sh_in_dir(gem_root, "gem bump --no-commit #{%(--version #{gem_version}) unless gem_version.strip.empty?}")
3635

37-
# Release the new gem version
38-
puts "Carefully add your OTP for Rubygems. If you get an error, run 'gem release' again."
36+
# Bump version, commit, and tag (gem bump does all of this)
37+
bump_command = "gem bump"
38+
bump_command << " --version #{gem_version}" unless gem_version.strip.empty?
39+
bump_command << " --skip-ci" # Skip CI on version bump commit
40+
sh_in_dir(gem_root, bump_command)
41+
42+
# Push the commit and tag
43+
sh_in_dir(gem_root, "git push") unless is_dry_run
44+
sh_in_dir(gem_root, "git push --tags") unless is_dry_run
45+
46+
# Release the new gem version to RubyGems
47+
puts "\nCarefully add your OTP for Rubygems. If you get an error, run 'gem release' again."
3948
sh_in_dir(gem_root, "gem release") unless is_dry_run
4049

4150
msg = <<~MSG

0 commit comments

Comments
 (0)