Repository navigation
Release through RubyGems trusted publishing - #39
Merged
Merged
Conversation
atesgoral
force-pushed
the
ci/trusted-publishing
branch
from
November 10, 2026 19:19
2d8dede to
bfe891d
Compare
tempor1s
approved these changes
Nov 10, 2026
hmcguire-shopify
approved these changes
Nov 10, 2026
Comment on lines
+7
to
+25
| ## One-time setup | ||
|
|
||
| Complete these steps before the first workflow run: | ||
|
|
||
| 1. A repository admin creates a GitHub Actions environment named `release` in | ||
| this repository's Settings > Environments. | ||
| 2. From the gem owner's RubyGems account, open `json_rpc_handler` and its | ||
| Trusted publishers page. Add a publisher with these fields: | ||
|
|
||
| | Field | Value | | ||
| | --- | --- | | ||
| | Trusted publisher type | GitHub Actions | | ||
| | Repository owner | `Shopify` | | ||
| | Repository name | `json-rpc-handler` | | ||
| | Workflow filename | `release.yml` | | ||
| | Environment | `release` | | ||
|
|
||
| The workflow uses the Ruby version in [`.ruby-version`](.ruby-version) and | ||
| installs the bundle before running the release task. |
dirceu
approved these changes
Nov 10, 2026
atesgoral
force-pushed
the
ci/trusted-publishing
branch
from
November 10, 2026 19:39
bfe891d to
629113f
Compare
Run the release job for published GitHub releases in this repository. Use pinned actions and the release environment. Document the one-time publisher setup and the version, changelog and tag flow.
atesgoral
force-pushed
the
ci/trusted-publishing
branch
from
November 10, 2026 20:21
74fd14f to
3aa6f85
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.
Change
Shopify/json-rpc-handler.releaseenvironment with job-levelcontents: writeandid-token: writepermissions. Read Ruby from.ruby-versionand install the bundle before the release action.RELEASING.mdwith the version and CHANGELOG PR flow (empty# Unreleasedabove the versioned entries) and matching release tag.No version or CHANGELOG change is included.
Validation
bundle exec rake test: 70 tests, 226 assertions, no failures, errors, or skips; 100% branch coverage (36 of 36 branches).See the RubyGems trusted-publishing guide.