Skip to content

Set up release automation via Trusted Publisher#453

Merged
sinsoku merged 1 commit into
ruby:masterfrom
sinsoku:setup-release-automation
May 10, 2026
Merged

Set up release automation via Trusted Publisher#453
sinsoku merged 1 commit into
ruby:masterfrom
sinsoku:setup-release-automation

Conversation

@sinsoku
Copy link
Copy Markdown
Collaborator

@sinsoku sinsoku commented May 9, 2026

Motivation / Background

Automate the gem release process so that maintainers only need to
land a version bump commit on master.

How the release flow works

  1. Maintainer runs ruby tool/bump.rb to create a version bump
    commit on master.
  2. The release workflow detects the change to
    lib/typeprof/version.rb, pushes the vX.Y.Z tag, publishes
    the gem via Trusted Publishing, and creates a GitHub Release
    with auto-generated notes.

Required setup

Notes

  • This PR does not introduce a CHANGELOG.md. Release notes are
    produced via gh release create --generate-notes.

@sinsoku sinsoku force-pushed the setup-release-automation branch from a86e67e to cb7fd7b Compare May 9, 2026 14:52
@sinsoku
Copy link
Copy Markdown
Collaborator Author

sinsoku commented May 9, 2026

@mame
I think using a script to simply increment the version and a trusted publisher would be a better fit — it avoids the org-level setting change.

What do you think?

Copy link
Copy Markdown
Member

@mame mame left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go ahead!

Maintainers run tool/bump.rb on master to create a version bump
commit. The release workflow then picks up the change, publishes
the gem via RubyGems Trusted Publisher, and creates a GitHub
Release.

Release notes are produced via `gh release create --generate-notes`,
so we do not maintain a CHANGELOG.md.
@sinsoku sinsoku force-pushed the setup-release-automation branch from cb7fd7b to e37c54d Compare May 10, 2026 12:35
@sinsoku sinsoku merged commit 184ff7d into ruby:master May 10, 2026
6 checks passed
@sinsoku sinsoku deleted the setup-release-automation branch May 10, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants