fix: split release workflow into PR-based prep + auto-publish#47
Merged
Wenxin-Jiang merged 2 commits intomainfrom Apr 1, 2026
Merged
fix: split release workflow into PR-based prep + auto-publish#47Wenxin-Jiang merged 2 commits intomainfrom
Wenxin-Jiang merged 2 commits intomainfrom
Conversation
The previous release workflow pushed version bumps directly to main, which is blocked by branch protection rules. Split into two workflows: 1. release-prep.yml (workflow_dispatch): bumps version and opens a PR 2. release.yml (on PR merge): tags, builds, and publishes when a release/v* branch is merged to main This allows releases without needing admin bypass for github-actions[bot]. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Passes github.event.pull_request.head.ref through an env variable instead of direct template expansion to satisfy zizmor audit. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jghebre
approved these changes
Apr 1, 2026
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.
Summary
The release workflow currently pushes version bumps directly to
main, which fails due to branch protection rules (requires PRs, signed commits, required workflows).This splits the release into two workflows:
release-prep.yml,workflow_dispatch): bumps version and opens a PR tomainrelease.yml, auto-triggers on PR merge): when arelease/v*branch merges tomain, it tags the commit, builds all platform binaries, and publishes to npm/crates.io/PyPI/GitHub ReleasesRelease flow after this change
patch/minor/majorCloses the issue where
github-actions[bot]can't push directly to protectedmain.