Repository navigation
Replace publish-crates workflow with release-plz - #168
Merged
Merged
Conversation
Mirror github/twirp-rs: a manual Create release PR workflow and a publish-release workflow that runs release-plz on pushes to main. Keep crates.io Trusted Publishing via OIDC instead of a registry token. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Release PRs will not run CI automatically, and concurrent publishing runs can race.
3 open findings
What changed in this PR
Automates Rust crate releases through release-plz while retaining crates.io Trusted Publishing.
Changes:
- Adds workflows for release PR creation and publishing.
- Configures development-only crate exclusions.
- Updates release documentation and removes manual publishing.
| File | Description |
|---|---|
release-plz.toml |
Configures workspace release exclusions. |
CONTRIBUTING.md |
Documents the automated release process. |
.github/workflows/create-release-pr.yaml |
Creates release PRs. |
.github/workflows/publish-release.yaml |
Publishes merged releases. |
.github/workflows/publish-crates.yaml |
Removes the manual publishing workflow. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.


Publishing currently requires manually bumping versions and running a workflow per crate. This switches to the release-plz flow used by github/twirp-rs, so version bumps, changelogs, tags, and crates.io publishing are automated.