Repository navigation
Automate RubyGems releases from version tags - #40
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
The repository snapshot cannot verify that GitHub’s release environment permits only version tags or that RubyGems trusts this repository’s release.yml with environment release.
No open issues 🎉
What changed in this PR
Automates gem releases from version tags, replacing manual publishing with local release checks and a GitHub Actions workflow.
Changes:
- Adds
release:prepareto check branch synchronization, tree cleanliness, tests, and RuboCop before updating the version, committing, and tagging. - Adds a tag-triggered workflow that validates the version, runs tests, publishes through RubyGems trusted publishing, and creates a GitHub release.
- Documents the release process and requires MFA for manual RubyGems publishing.
| File | Description |
|---|---|
| README.md | Documents release preparation and pushing version tags. |
| Rakefile | Adds release preparation checks and bare-version tagging. |
| emailable.gemspec | Enables RubyGems MFA-required metadata. |
| .github/workflows/release.yml | Automates validation, publishing, and GitHub release creation. |
Review effort: Balanced
22612dd to
a5fd575
Compare
a5fd575 to
1bcf165
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The release task must reject existing target tags before modifying or committing the version, otherwise a failed tag command leaves a downgrade commit on master and blocks retries until it is manually undone.
1 open issue
Review effort: Balanced
Releases were published by hand, so a step like bumping the version or creating the GitHub release could be missed. Pushing a tag made by `rake release:prepare` now publishes through trusted publishing, and requiring MFA keeps any manual push behind a 2FA code.
1bcf165 to
b39bfa0
Compare
There was a problem hiding this comment.
🔵 Needs a closer look
Release-security settings outside the reviewed files still need confirmation: version-tag restrictions on GitHub’s release environment and RubyGems trusted-publisher bindings to this repository, release.yml, and that environment.
No open issues 🎉
1 resolved since last review
Review effort: Balanced

Releases were published by hand, so a step like bumping the version or creating the GitHub release could be missed. Running
rake release:preparenow checks the branch, tests, and RuboCop before tagging, and pushing the tag publishes to RubyGems through trusted publishing from areleaseenvironment that only version tags can deploy to;rubygems_mfa_requiredkeeps any manual push behind 2FA. Before the first release, add a RubyGems trusted publisher forrelease.ymlwith environmentrelease.