Skip to content

ci: cut release without opening a PR#88

Merged
santiagomed merged 1 commit into
mainfrom
fix/cut-release-no-pr
Jul 16, 2026
Merged

ci: cut release without opening a PR#88
santiagomed merged 1 commit into
mainfrom
fix/cut-release-no-pr

Conversation

@santiagomed

Copy link
Copy Markdown
Collaborator

Summary

  • Fixes Cut Release failure: GitHub Actions is not permitted to create or approve pull requests
  • Stops opening a release PR (blocked by default repo setting; still needs review under the ruleset)
  • Commits changelog on main, tags, pushes both, then publishes (GoReleaser + npm)
  • Clear error if push is rejected: add GitHub Actions as a ruleset bypass (Always), or set RELEASE_GITHUB_TOKEN

Repo setup required for the push

Rulesets → main → Bypass list → add GitHub ActionsAlways
(without this, push to main will be rejected the same way PRs were)

Test plan

  • Merge this PR
  • Confirm GitHub Actions is a ruleset bypass on main
  • gh workflow run "Cut Release" -f bump=patch -f dry_run=true
  • gh workflow run "Cut Release" -f bump=patch (or finish v1.2.3 with -f version=1.2.3)

GITHUB_TOKEN cannot create PRs unless a separate repo setting is enabled,
and the PR path still needs review under the main ruleset. Commit the
changelog on main, tag, and publish directly instead. Document the need
for a GitHub Actions ruleset bypass (or RELEASE_GITHUB_TOKEN).
@santiagomed
santiagomed merged commit 9df8722 into main Jul 16, 2026
2 checks passed
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.

1 participant