Add release workflow to automate gem publishing#448
Draft
sinsoku wants to merge 1 commit intoruby:masterfrom
Draft
Add release workflow to automate gem publishing#448sinsoku wants to merge 1 commit intoruby:masterfrom
sinsoku wants to merge 1 commit intoruby:masterfrom
Conversation
Allow publishing a new version to RubyGems simply by merging a release PR. tagpr handles release PR creation and tagging, and rubygems/release-gem pushes the gem. refs: * https://github.com/Songmu/tagpr * https://guides.rubygems.org/trusted-publishing/
Member
|
I checked the repository settings, and "Allow GitHub Actions to create and approve pull requests" appears to be disabled at the enterprise level. So I cannot enable it soon. |
Collaborator
Author
|
@mame
The impact is limited because tagpr only creates a release PR. I'll consider if there's a better way. |
1 task
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.
Motivation / Background
I want to increase the release frequency by automating the gem release process.
Detail
Allow publishing a new version to RubyGems simply by merging a release PR.
tagpr handles release PR creation and tagging, and rubygems/release-gem pushes the gem.
Required setup (cc: @mame)
Several settings are required for this workflow to work.
rubytypeprofrelease.ymlreleaseHow the release flow works
master, tagpr opens (or updates) a release PRtitled something like
Release for vX.Y.Z. The PR contains:lib/typeprof/version.rbGemfile.lock(viapostVersionCommand)CHANGELOG.mdentry summarizing merged PRs sincethe last release
minorormajor— tagpr will automaticallypropagate this to the release PR as
tagpr:minor/tagpr:major, ortagpr:minorortagpr:majorto override / set the bump manually.
vX.Y.Ztag and create aGitHub Release.
rubygems/release-gem, which builds and pushes the gemto RubyGems via Trusted Publishing (no API key needed).
Examples