Skip to content

Replace publish-crates workflow with release-plz - #168

Merged
bb8gh merged 2 commits into
mainfrom
bb8gh/release-plz-workflows
Oct 7, 2026
Merged

bb8gh merged 2 commits into
mainfrom
bb8gh/release-plz-workflows

Conversation

@bb8gh

@bb8gh bb8gh commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

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.

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>
Copilot AI balanced review requested due to automatic review settings October 7, 2026 23:06
@bb8gh
bb8gh requested a review from a team as a code owner October 7, 2026 23:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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.

Comment thread .github/workflows/create-release-pr.yaml
Comment thread .github/workflows/publish-release.yaml
Comment thread .github/workflows/publish-release.yaml Outdated

@look look left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

cool, TIL

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@bb8gh
bb8gh merged commit a4637f1 into main Oct 7, 2026
8 checks passed
@bb8gh
bb8gh deleted the bb8gh/release-plz-workflows branch October 7, 2026 23:23
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.

3 participants