Use gem-push-command to skip git push in release workflow#427
Merged
gjtorikian merged 1 commit intomainfrom Feb 3, 2026
Merged
Use gem-push-command to skip git push in release workflow#427gjtorikian merged 1 commit intomainfrom
gjtorikian merged 1 commit intomainfrom
Conversation
The `rake release` task tries to push tags to GitHub, but the publish job only has `contents: read` permission (and the create-release job already handles creating tags). Use `rake build release:rubygem_push` to only build and push to RubyGems without git operations. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
gjtorikian
approved these changes
Feb 3, 2026
Greptile OverviewGreptile SummaryThis PR fixes the release workflow by configuring the Changes:
Verification needed:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant PR as Pull Request (merged)
participant CRJ as create-release Job
participant GH as GitHub API
participant PJ as publish Job
participant RGA as rubygems/release-gem Action
participant RG as RubyGems.org
PR->>CRJ: Trigger (version-bump label)
activate CRJ
Note over CRJ: permissions: contents: write
CRJ->>GH: Create GitHub Release & Tag
GH-->>CRJ: Release created
deactivate CRJ
CRJ->>PJ: Job dependency satisfied
activate PJ
Note over PJ: permissions: contents: read
PJ->>PJ: Checkout code
PJ->>PJ: Run tests
PJ->>RGA: Execute gem-push-command
activate RGA
RGA->>RGA: bundle exec rake build
RGA->>RGA: bundle exec rake release:rubygem_push
Note over RGA: Skips git operations
RGA->>RG: Push gem to RubyGems
RG-->>RGA: Gem published
deactivate RGA
deactivate PJ
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gem-push-commandinput forrubygems/release-gem@v1to skip git operationsProblem
The release workflow failed because
rake releasetries to push tags to GitHub, but the publish job only hascontents: readpermission:See: https://github.com/workos/workos-ruby/actions/runs/21636125105/job/62362010013
The
create-releasejob already handles creating the GitHub release and tags, so thepublishjob only needs to push the gem to RubyGems.Solution
Use
bundle exec rake build release:rubygem_pushwhich only builds the gem and pushes to RubyGems without attempting git operations.Test plan
🤖 Generated with Claude Code