Releases
ZeroVer (0.x): the API is stabilizing; minor bumps may break, patch bumps don’t. Releases are cut
manually with the flow below (proven in the sibling repos), not changelogen --release (its
auto-tag once tagged a pre-bump commit in the flags repo). changelogen only previews the
changelog.
The flow
Section titled “The flow”export NODE_OPTIONS= # a stale preload breaks husky under node
# 1. Preview the changelog since the last tag (the first release: --from the first commit)bunx changelogen --from vPREV --to HEAD
# 2. Bump + recordnpm pkg set version=X.Y.Z # and VERSION in src/version.ts (the CLI, /config and /healthcheck report it)# prepend the CHANGELOG.md entry ("## vX.Y.Z") 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/links versionThe tag push triggers two workflows:
release.yml: installs, builds (library, Elysia 2 types, UI, React embed), runspublint, publishes to npm with provenance, and turns the tag into a GitHub Release whose notes are the tag’sCHANGELOG.mdsection (keep the heading exactly## vX.Y.Z).docker.yml: buildsapps/standalone/Dockerfileand pushesghcr.io/xantiagoma/xtandard-links:vX.Y.Z(pushes tomainpublishlatestandsha-…), then smoke-tests/healthcheck, the panel and the OpenAPI document.
The docs site (pages.yml) rebuilds on every push to main that touches the docs, src/ or the
changelog.
npm trusted publishing
Section titled “npm trusted publishing”Publishing uses npm trusted publishing (OIDC) for this repository + release.yml: there is 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/links --repo xantiagoma/xtandard-links --file release.yml --allow-publishThe workflow needs id-token: write (already set) and npm >= 11.5.1 on the runner (it uses Node 24).
Publish failed for a tag? Re-run it without cutting a new version:
gh workflow run release.yml -f tag=vX.Y.Z.
One-time repository setup
Section titled “One-time repository setup”- Upload
docs/assets/social.pngas the GitHub social preview (Settings → General → Social preview) and set Pages’ source to “GitHub Actions” (Brand). - The docs site renders
CHANGELOG.mdas its Changelog page (and the README’s “Project status” section next to it), so every release entry shows up there on the next Pages deploy.
Conventional commits
Section titled “Conventional commits”Scopes: core, redirect, resolver, rules, clicks, analytics, conversions, deeplinks,
storage, server, auth, ui, react, cli, qr, import, bridges, examples, docs,
site, ci. The changelog is generated from these: write them for the reader.