Releases
ZeroVer (0.x): the API is stabilizing; minor bumps may break, patch bumps don’t. Releases are cut manually — the proven flow below, not changelogen --release (its auto-tag once tagged a pre-bump commit in the sibling flags repo).
The flow
Section titled “The flow”export NODE_OPTIONS= # a stale preload breaks husky under node
# 1. Preview the changelog since the last tagbunx changelogen --from vPREV --to HEAD
# 2. Bump + recordnpm pkg set version=X.Y.Z # also bump VERSION in src/version.ts# prepend the CHANGELOG.md entry from the previewbun run format # ALWAYS before committing, even docs-onlygit add -A && git commit -m "chore(release): vX.Y.Z"
# 3. Tag and push — main FIRST, tag secondgit tag -a vX.Y.Z -m "vX.Y.Z"git push origin maingit push origin vX.Y.Z
# 4. Verify the tag dereferences to the release commitgit ls-remote origin 'refs/tags/vX.Y.Z^{}'
# 5. Watch the Release workflow (build → publint → npm publish --provenance → GitHub Release)gh run watch
# 6. Confirmnpm view @xtandard/webhooks versionRequirements: npm trusted publishing (OIDC) for this repo + release.yml — no token to store or rotate — and .npmrc keeps provenance=true. Set the trust up once (npm >= 11.10, logged in as a package owner):
npx npm@latest trust github @xtandard/webhooks --repo xantiagoma/xtandard-webhooks --file release.yml --allow-publishPublish failed for a tag? Re-run it without cutting a new version: gh workflow run release.yml -f tag=vX.Y.Z.
Conventional commits
Section titled “Conventional commits”Scopes: core, dispatcher, signing, storage, server, ui, react, portal, cli, examples, docs, ci. The changelog is generated from these — write them for the reader.