Skip to content

chore: skip changelogen GitHub release prompt in pnpm release#13

Merged
awdr74100 merged 1 commit into
mainfrom
chore/release-no-github
Jun 27, 2026
Merged

chore: skip changelogen GitHub release prompt in pnpm release#13
awdr74100 merged 1 commit into
mainfrom
chore/release-no-github

Conversation

@awdr74100

Copy link
Copy Markdown
Owner

What

Add --no-github to the root release script so pnpm release only bumps the version, writes the changelog, commits, and tags locally.

Why

changelogen --release opens a browser to manually create a GitHub release by default, but does not push the commit/tag unless --push is given. That asymmetry is a footgun (upstream unjs/changelogen#237): submitting the release form before the bump commit+tag are pushed creates the tag on the wrong commit — which is exactly how v0.2.0 ended up tagged on a pre-bump commit and the npm publish failed.

The GitHub Release is already created by the Release workflow (changelogen gh release) after npm publish succeeds, so the local prompt is redundant and dangerous.

Flow after this change

pnpm release            # bump + commit + annotated tag (no browser)
git push --follow-tags  # CI: npm publish (OIDC) + GitHub Release + plugin zip

changelogen --release opens a browser to manually create a GitHub
release by default (and does NOT push the commit/tag unless --push is
given). That asymmetry let a release form be submitted before the bump
commit+tag were pushed, creating the tag on the wrong commit (see
unjs/changelogen#237).

Add --no-github so pnpm release only bumps, commits, and tags locally.
The GitHub Release is created by the Release workflow (changelogen gh
release) after npm publish succeeds.
@awdr74100 awdr74100 merged commit 9d79a67 into main Jun 27, 2026
2 checks passed
@awdr74100 awdr74100 deleted the chore/release-no-github branch June 27, 2026 08:38
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