Skip to content

ci: Leave tagging to release-please when publishing the gem - #31

Merged
anakinj merged 1 commit into
mainfrom
ci/release-skip-tag-push
Nov 4, 2026
Merged

anakinj merged 1 commit into
mainfrom
ci/release-skip-tag-push

Conversation

@anakinj

@anakinj anakinj commented Nov 4, 2026

Copy link
Copy Markdown
Member

Description

bundle exec rake release builds the gem, then tags and pushes the tag, then pushes the gem. release-please has already pushed the tag by the time the publish job runs, and the job's checkout doesn't include tags. So Bundler tags again, the push is rejected with v… -> v… (already exists), and rake stops before the gem push.

The publish job now runs bundle exec rake release:rubygem_push instead. That task depends on build, so it still builds the gem and runs any build prerequisites, then pushes it to RubyGems without touching git.

The 1.0.0 run failed earlier, at check_version, so this step was never reached. Merging the 1.0.1 release PR (#30) without this change would fail at the tag push.

gem-push.yml is unchanged. It checks out the tag, so Bundler sees the tag already exists and skips the push.

Posted by Claude on behalf of @anakinj.

release-please creates and pushes the release tag itself. rake release then
tries to tag and push the same version again. The checkout in the release
job has no tags, so Bundler doesn't see the existing one, the push is
rejected, and rake stops before pushing the gem.

release:rubygem_push depends on build, so it still builds the gem and runs
any build prerequisites, then pushes it without touching git.
@anakinj
anakinj merged commit e24b195 into main Nov 4, 2026
11 checks passed
@anakinj
anakinj deleted the ci/release-skip-tag-push branch November 4, 2026 11:35
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.

1 participant