Skip to content

ci(publish): open release PR via GitHub API, not gh CLI#52

Merged
DannyNs merged 1 commit into
developfrom
fix/release-workflow-pr
Jun 18, 2026
Merged

ci(publish): open release PR via GitHub API, not gh CLI#52
DannyNs merged 1 commit into
developfrom
fix/release-workflow-pr

Conversation

@DannyNs

@DannyNs DannyNs commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

The self-hosted runner has no gh CLI (exit 127: gh: command not found), so the release branch + tag pushed but PR creation failed. Replace the gh calls with .github/scripts/open-release-pr.mjs, which creates the PR (REST) and enables squash auto-merge (GraphQL) using only Node's global fetch. Idempotent: reuses an existing open PR for the release branch on re-run, and warns instead of failing if auto-merge cannot be enabled.

The self-hosted runner has no gh CLI (exit 127: gh: command not found),
so the release branch + tag pushed but PR creation failed. Replace the gh
calls with .github/scripts/open-release-pr.mjs, which creates the PR (REST)
and enables squash auto-merge (GraphQL) using only Node's global fetch.
Idempotent: reuses an existing open PR for the release branch on re-run,
and warns instead of failing if auto-merge cannot be enabled.
@DannyNs DannyNs merged commit 0c0c978 into develop Jun 18, 2026
1 check 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