From 7d1ed29837d9f2a6e423d2a33a2bd4ec9123b310 Mon Sep 17 00:00:00 2001 From: "Daniel (dB.) Doubrovkine" Date: Tue, 10 Nov 2026 19:30:24 -0500 Subject: [PATCH] Update ruby-gem-release to 0.5.0 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- CHANGELOG.md | 1 + Gemfile | 2 +- RELEASING.md | 6 +++--- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f062057..5436bc2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,6 @@ permissions: jobs: release: - uses: dblock/ruby-gem-release/.github/workflows/release.yml@v0.3.1 + uses: dblock/ruby-gem-release/.github/workflows/release.yml@v0.5.0 with: ruby-version: '3.3' diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f3a69a..a9fb856 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### 0.5.2 (Next) +* [#31](https://github.com/dblock/ruby-link-checker/pull/31): Updated ruby-gem-release to 0.5.0 - [@dblock](https://github.com/dblock), [@Copilot](https://github.com/Copilot). * Your contribution here. ### 0.5.1 (2026/11/08) diff --git a/Gemfile b/Gemfile index f33b665..c8b7cc7 100644 --- a/Gemfile +++ b/Gemfile @@ -17,7 +17,7 @@ group :development, :test do gem 'rubocop', '~> 1.0' gem 'rubocop-rake' gem 'rubocop-rspec' - gem 'ruby-gem-release', '~> 0.3.1', require: false + gem 'ruby-gem-release', '~> 0.5.0', require: false gem 'vcr' gem 'webmock' end diff --git a/RELEASING.md b/RELEASING.md index 9274b32..326bf82 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -2,7 +2,7 @@ There are no hard rules about when to release ruby-link-checker. Release bug fixes frequently, features not so frequently and breaking API changes rarely. -Releases use [ruby-gem-release](https://github.com/dblock/ruby-gem-release/tree/v0.3.1) and the manual [Release workflow](.github/workflows/release.yml). Merges do not publish. Every workflow dispatch performs a real release. +Releases use [ruby-gem-release](https://github.com/dblock/ruby-gem-release/tree/v0.5.0) and the manual [Release workflow](.github/workflows/release.yml). Merges do not publish. Every workflow dispatch performs a real release. ## One-Time Setup @@ -28,10 +28,10 @@ After merging, explicit release approval, and successful Trusted Publishing setu gh workflow run release.yml --ref main ``` -The workflow runs `bundle exec rake`, publishes the verified gem to RubyGems, pushes the release commit and tag atomically, and creates a GitHub Release with the gem attached. It then increments the patch version and pushes a new development commit with a fresh changelog section. Actions-token pushes do not trigger ordinary push workflows, so the release workflow runs tests and RuboCop before publication. +The workflow validates release preconditions, prepares the changelog, runs `bundle exec rake`, and preserves verified recovery artifacts before publication. It then publishes the verified gem to RubyGems, pushes the release commit and tag atomically, and creates a GitHub Release with the gem attached. Finally, it increments the patch version and pushes a new development commit with a fresh changelog section. Actions-token pushes do not trigger ordinary push workflows, so the release workflow runs tests and RuboCop before publication. ## Verify and Recover Verify the published RubyGems version, matching tag and GitHub Release, attached gem, and next development version on `main`. -Never automatically rerun a failed or timed-out publication: RubyGems may have accepted the upload. Check registry and GitHub state first. Do not republish an existing version or move its tag. Available `release.gem`, `release.json`, and `release.bundle` recovery artifacts are retained for 30 days; follow the [upstream recovery instructions](https://github.com/dblock/ruby-gem-release/blob/v0.3.1/RELEASING.md#verify-and-recover) to complete only the missing steps. +Never automatically rerun a failed or timed-out publication: RubyGems may have accepted the upload. Check registry and GitHub state first. Do not republish an existing version or move its tag. Available `release.gem`, `release.json`, and `release.bundle` recovery artifacts are retained for 30 days; follow the [upstream recovery instructions](https://github.com/dblock/ruby-gem-release/blob/v0.5.0/RELEASING.md#verify-and-recover) to complete only the missing steps.