Repository navigation
Release with ruby-gem-release - #14
Merged
Merged
Conversation
Danger ReportNo issues found. |
Add a manually dispatched Release workflow that uses the ruby-gem-release 0.9.0 reusable workflow with RubyGems Trusted Publishing and optional dry runs. The Intridea changelog handler dates the (Next) section and prepares the next patch version. Disable the local Bundler release tasks, load the version file relative to the gemspec so release fixtures build their own version, and cover the release with ruby-gem-release RSpec helpers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Gr21iR4JxWxGGyXdJ3uc9
dblock
force-pushed
the
dblock/ruby-gem-release
branch
from
November 24, 2026 04:06
43b5e11 to
e4fff69
Compare
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.
Stacked on #13. Replaces the manual
rake releaseprocess with a manually dispatched ruby-gem-release 0.9.0 workflow that publishes through RubyGems Trusted Publishing, as in mongoid-history#280..github/workflows/release.ymlcalls the reusable workflow, but only from the default branch ofmongoid/mongoid-observers. It takes an optionalversioninput and adry-runinput. The test command starts amongo:8.0container beforebundle exec rakewhere specs need MongoDB.script/release.rbbuilds the workflow withRubyConstantandChangelog::Intridea. A release dates the(Next)heading, then adds the next patch(Next)section.release,release:rubygem_push, andrelease:source_control_push.require_relative, so release fixtures build their own version instead of the checkout's.spec/releaseruns a full local release and rejects sections with only the placeholder, using the upstream RSpec helpers and never contacting RubyGems or GitHub.VERSIONto 0.4.1 to match the pending0.4.1 (Next)section. Note:v0.4.0is tagged and dated in the CHANGELOG, but 0.4.0 is not on RubyGems (latest is 0.3.0). A maintainer should decide whether to publish 0.4.0 from its tag first./vendor/bundle:ruby/setup-rubywithbundler-cacheinstalls gems there, and the release's clean-checkout check otherwise rejects the run (see Ignore vendor/bundle mongoid-shell#33).Before the first release (not done in this PR): create the
releaseenvironment, add the RubyGems trusted publisher (mongoid/mongoid-observers,release.yml, environmentrelease, workflow repositorydblock/ruby-gem-release), and allow Actions to push to the default branch. Then verify the setup withgh workflow run release.yml -R mongoid/mongoid-observers -f dry-run=true.Validation:
bundle exec rakeon Ruby 4.0.9 with local MongoDB: 52 files inspected, no offenses detected 65 examples, 0 failures 2 examples, 0 failuresactionlintpasses.This PR was written by an AI (Claude) on behalf of @dblock.
🤖 Generated with Claude Code
https://claude.ai/code/session_011Gr21iR4JxWxGGyXdJ3uc9