Skip to content

Add Rakefile to fix release workflow#426

Merged
gjtorikian merged 1 commit intomainfrom
fix-release-workflow-rakefile
Feb 3, 2026
Merged

Add Rakefile to fix release workflow#426
gjtorikian merged 1 commit intomainfrom
fix-release-workflow-rakefile

Conversation

@workos-sdk-automation
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 <noreply@anthropic.com>
@workos-sdk-automation workos-sdk-automation bot requested a review from a team as a code owner February 3, 2026 15:21
@workos-sdk-automation workos-sdk-automation bot requested review from tribble and removed request for a team February 3, 2026 15:21
@greptile-apps
Copy link

greptile-apps bot commented Feb 3, 2026

Greptile Overview

Greptile Summary

This PR fixes the release workflow by adding a standard Rakefile with Bundler gem tasks, enabling the rake release command required by rubygems/release-gem@v1.

  • Added Rakefile with bundler/gem_tasks and RSpec task configuration
  • Removed redundant gem build step from workflow since rake release handles building
  • Implementation follows Ruby gem best practices and aligns with the existing gemspec configuration

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The changes are minimal, follow standard Ruby gem conventions, and directly address a documented workflow failure. The Rakefile uses standard bundler gem tasks, and removing the redundant build step simplifies the workflow without introducing risks.
  • No files require special attention

Important Files Changed

Filename Overview
Rakefile Adds standard Bundler gem tasks and RSpec test task to enable rake release command
.github/workflows/release.yml Removes redundant gem build step since rubygems/release-gem@v1 handles build via rake release

Sequence Diagram

sequenceDiagram
    participant PR as Pull Request (merged)
    participant GHA as GitHub Actions
    participant Release as Create Release Job
    participant Publish as Publish Job
    participant Ruby as Ruby Setup
    participant RSpec as RSpec Tests
    participant Rake as Rake Release
    participant RubyGems as RubyGems.org

    PR->>GHA: PR merged with version-bump label
    GHA->>Release: Trigger create-release job
    Release->>Release: Extract version from lib/workos/version.rb
    Release->>Release: Create GitHub release with tag
    Release->>Publish: Trigger publish job (needs: create-release)
    Publish->>Ruby: Setup Ruby 3.2 & bundle install
    Ruby->>RSpec: Run bundle exec rspec
    RSpec->>Rake: Tests pass, proceed to rake release
    Note over Rake: Rakefile provides bundler/gem_tasks<br/>which includes 'rake release' command
    Rake->>Rake: Build gem (workos-{version}.gem)
    Rake->>RubyGems: Push gem to RubyGems.org
    RubyGems->>Publish: Gem published successfully
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 merged commit 52c8a5c into main Feb 3, 2026
8 checks passed
@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

Development

Successfully merging this pull request may close these issues.

1 participant