Skip to content

chore(npm): tag and cut a GitHub Release on publish - #33

Merged
daedeloth merged 1 commit into
masterfrom
chore/publish-build-and-package-files
Sep 8, 2026
Merged

chore(npm): tag and cut a GitHub Release on publish#33
daedeloth merged 1 commit into
masterfrom
chore/publish-build-and-package-files

Conversation

@daedeloth

Copy link
Copy Markdown
Member

grunt bump already commits and tags vX.Y.Z locally, but pushing that tag was a manual step and no GitHub Release was ever created. Add a postpublish hook that runs only after npm publish succeeds: it pushes the branch with --follow-tags (bump's tags are annotated, so they travel), then creates the Release with auto-generated notes.

--verify-tag makes gh abort instead of inventing a tag at HEAD if you published without bumping first. Requires the GitHub CLI, authenticated; documented along with the rest of the release flow in the README.

grunt bump already commits and tags vX.Y.Z locally, but pushing that tag
was a manual step and no GitHub Release was ever created. Add a
postpublish hook that runs only after npm publish succeeds: it pushes the
branch with --follow-tags (bump's tags are annotated, so they travel),
then creates the Release with auto-generated notes.

--verify-tag makes gh abort instead of inventing a tag at HEAD if you
published without bumping first. Requires the GitHub CLI, authenticated;
documented along with the rest of the release flow in the README.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@daedeloth
daedeloth merged commit 0cc955d into master Sep 8, 2026
2 checks passed
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

📦 PR Preview deployed!

Examples are available at:

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