Skip to content

ci: say what to do when the release PR can't be opened - #21

Merged
GSTJ merged 1 commit into
masterfrom
gstj/release-preflight
Jul 27, 2026
Merged

ci: say what to do when the release PR can't be opened#21
GSTJ merged 1 commit into
masterfrom
gstj/release-preflight

Conversation

@GSTJ

@GSTJ GSTJ commented Jul 27, 2026

Copy link
Copy Markdown
Owner

Turns a bare GraphQL error into instructions when the release workflow can't open its bump PR.

v1.0.10 hit this: it published to npm and pushed the tag, then died on gh pr create with "GitHub Actions is not permitted to create or approve pull requests", so master sat a version behind the registry until I opened #20 by hand. The repo setting behind it is off by default and is now on.

Checking the setting before publishing isn't possible. GITHUB_TOKEN has no permission scope covering repo Actions settings, so gh api repos/:repo/actions/permissions/workflow returns 403 from inside a workflow. The step now reports the pushed branch and the setting to turn on, and says to merge with a merge commit rather than a squash.

v1.0.10 published to npm and tagged, then the workflow died on `gh pr create`
with "GitHub Actions is not permitted to create or approve pull requests",
which left master a version behind the registry. That repo setting is off by
default and is now on.

GITHUB_TOKEN has no permission scope that can read that setting, so the
workflow can't check it before publishing. The step now prints the branch to
open a PR from and the setting to turn on, instead of leaving a bare GraphQL
error in the log.
@GSTJ
GSTJ merged commit aa1e9d5 into master Jul 27, 2026
3 checks passed
@GSTJ
GSTJ deleted the gstj/release-preflight branch July 27, 2026 01:05
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