Skip to content

Conversation

@gjtorikian
Copy link
Contributor

Summary

  • Adds a Rakefile with bundler gem tasks to enable rake release
  • Removes redundant gem build step from release workflow since rake release handles building

Problem

The release workflow was failing because rubygems/release-gem@v1 runs bundle exec rake release, but no Rakefile existed in the repository:

rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)

See: https://github.com/workos/workos-ruby/actions/runs/21615714398/job/62293930501

Test plan

  • Verify CI passes
  • Trigger a release to confirm the workflow completes successfully

🤖 Generated with Claude Code

The `rubygems/release-gem@v1` action expects `rake release` to be
available, which requires bundler gem tasks. This was causing the
release workflow to fail with "No Rakefile found".

Also removes the redundant `gem build` step since `rake release`
handles both building and pushing the gem.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@gjtorikian gjtorikian requested a review from a team as a code owner February 3, 2026 03:31
@gjtorikian gjtorikian requested review from faroceann and removed request for a team February 3, 2026 03:31
@greptile-apps
Copy link

greptile-apps bot commented Feb 3, 2026

Greptile Overview

Greptile Summary

Fixes the release workflow by adding a Rakefile with standard Bundler gem tasks. The rubygems/release-gem@v1 action runs bundle exec rake release, which requires a Rakefile to exist - this was causing workflow failures. The redundant gem build step was also removed since rake release handles gem building internally.

  • Added Rakefile with bundler/gem_tasks to enable rake release, rake build, and other gem lifecycle tasks
  • Configured RSpec rake task with default task pointing to :spec for running tests via rake
  • Removed duplicate gem build workos.gemspec step from workflow since it's redundant

Confidence Score: 5/5

  • This PR is safe to merge with no risk
  • Changes add standard Ruby gem configuration (Rakefile) that fixes a documented workflow failure, with no logic changes to application code
  • No files require special attention

Important Files Changed

Filename Overview
Rakefile Adds standard Bundler gem tasks and RSpec configuration to enable rake release
.github/workflows/release.yml Removes redundant gem build step since rubygems/release-gem@v1 runs rake release internally

Sequence Diagram

sequenceDiagram
    participant Dev as Developer
    participant GH as GitHub Actions
    participant WF as Release Workflow
    participant Ruby as Ruby/Bundler
    participant RG as RubyGems

    Dev->>GH: Merge PR with 'version-bump' label
    GH->>WF: Trigger release workflow
    WF->>WF: Create GitHub Release
    WF->>WF: Checkout code
    WF->>Ruby: Setup Ruby 3.2 & bundle install
    WF->>Ruby: Run tests (bundle exec rspec)
    Ruby-->>WF: Tests pass
    WF->>Ruby: Run rubygems/release-gem@v1
    Ruby->>Ruby: Execute bundle exec rake release
    Ruby->>Ruby: Load Rakefile (bundler/gem_tasks)
    Ruby->>Ruby: Build gem from workos.gemspec
    Ruby->>RG: Push gem to RubyGems
    RG-->>WF: Publish successful
    WF-->>GH: Release complete
Loading

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@gjtorikian gjtorikian closed this Feb 3, 2026
@gjtorikian gjtorikian deleted the fix-release-workflow-rakefile branch February 3, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants