Repository navigation
Release with ruby-gem-release - #341
Merged
Merged
Conversation
dblock
force-pushed
the
dblock/ruby-gem-release
branch
from
November 22, 2026 14:58
7f5d217 to
896d9ff
Compare
Add a manually dispatched Release workflow that uses the dblock/ruby-gem-release v0.9.0 reusable workflow and RubyGems Trusted Publishing. It runs the full suite, dates the changelog, publishes the gem, pushes the release commit and tag, creates a GitHub Release, and bumps the patch version with a new Next section. ruby-gem-release requires Ruby 3.3+, so it lives in gemfiles/release.gemfile, which loads the main Gemfile; the Rakefile only installs the release tasks when that bundle is used, so the Ruby 2.7, 3.2 and JRuby CI jobs are unaffected. The local Bundler release tasks are disabled. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Gr21htyJfr8XZGHBcPwkW
dblock
force-pushed
the
dblock/ruby-gem-release
branch
from
November 22, 2026 15:01
896d9ff to
2dfec8a
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.
Replaces the manual
rake releaseprocess in RELEASING.md with a manually dispatched Release workflow using RubyGems Trusted Publishing, so no RubyGems API key is stored.Changes
.github/workflows/release.yml:workflow_dispatchwith optionalversionanddry-runinputs, callingdblock/ruby-gem-release/.github/workflows/release.yml@v0.9.0on Ruby 4.0 withcontents: writeandid-token: write.gemfiles/release.gemfile: loads the mainGemfileand addsruby-gem-release0.9.0 andcommonmarker~> 2.10. ruby-gem-release requires Ruby 3.3+, so keeping it out of the main bundle leaves the Ruby 2.7, 3.2 and JRuby CI jobs untouched. Its lockfile is ignored, likeGemfile.lock..gitignore: also ignoresvendor/bundle, where the reusable workflow'sruby/setup-rubybundler-cacheinstalls gems; the release's clean-checkout check fails on untracked files.Rakefile: installs the release tasks only when ruby-gem-release is in the active bundle (Gem.loaded_specs.key?('ruby-gem-release')afterBundler.setup, rather thanrescue LoadError, so a real load failure isn't hidden), withRubyConstantforHyperclient::VERSIONand theIntrideachangelog using the* Your contribution here.placeholder. Bundler'srelease,release:rubygem_pushandrelease:source_control_pushare replaced with tasks that abort and point to RELEASING.md, so nobody can publish around the workflow.RELEASING.md: rewritten for the workflow: one-time setup, dry run, release, verification and recovery.Validation
bundle exec rakepasses with both the main bundle andBUNDLE_GEMFILE=gemfiles/release.gemfileon Ruby 4.0.9: 196 tests, 32 Spinach steps, RuboCop clean.actionlintis clean.rake releaseaborts with the RELEASING.md pointer; therelease:*tasks only appear with the release bundle.release:validatepasses;release:prepareturns### 2.2.0 (Next)into### 2.2.0 (2026/11/22)and removes the placeholder;release:bumpcommits "Prepare next development iteration, 2.2.1", setsVERSIONto2.2.1and adds### 2.2.1 (Next)with the placeholder. Nothing was published or pushed anywhere else.Not Done (needs a maintainer)
releaseenvironment (and optionally required reviewers).codegram/hyperclient, workflowrelease.yml, environmentrelease, workflow repositorydblock/ruby-gem-release).gh workflow run release.yml -f dry-run=trueto check the setup.masterhas no branch protection or rulesets today, so the release pushes are allowed.🤖 Generated with Claude Code
https://claude.ai/code/session_011Gr21htyJfr8XZGHBcPwkW