Releases
Changelog Generation
Section titled “Changelog Generation”Changelogs are generated from conventional commits using changelogen:
bun run release # = changelogen --release --pushThis bumps the version in package.json (from the commits since the last tag),
generates/updates CHANGELOG.md, creates a release commit + git tag, and pushes —
which triggers the publish workflow below.
Prerequisites (one-time)
Section titled “Prerequisites (one-time)”- npm trusted publishing (OIDC) for this repo + workflow — no token to store or
rotate. Set it up once (npm >= 11.10, logged in as a package owner):
npx npm@latest trust github @xtandard/flags --repo xantiagoma/xtandard-flags --file release.yml --allow-publish - The
@xtandardscope must exist on npm (the package publishes with--access public).
Release Flow (GitHub Actions)
Section titled “Release Flow (GitHub Actions)”Quality gates (lint, format, typecheck, unit + bun + e2e tests) run on every push via
the CI workflow. The Release workflow (.github/workflows/release.yml) is
separate and triggered by pushing a version tag (v*):
bun install --frozen-lockfilebun run build(lib + UI + react)bunx publint(package-correctness check)npm publish --provenance --access public(auth via OIDC trusted publishing)- Create a GitHub Release for the tag (
gh release create … --generate-notes), so it appears on the repo’s Releases page.
First release: git tag v0.1.0 && git push origin v0.1.0.
Ongoing releases: bun run release.
Publish failed for a tag? Re-run it without a new version:
gh workflow run release.yml -f tag=vX.Y.Z.
npm provenance links the published package to the specific GitHub Actions run that
built it (id-token: write in the workflow), so consumers can verify the build chain.
Docker Image Tags
Section titled “Docker Image Tags”The Docker image is published to GitHub Container Registry (ghcr.io/xantiagoma/xtandard-flags). Tags follow the pattern:
| Tag | Updated on |
|---|---|
latest |
Every release |
v0.1.0 (exact version) |
That release only |
v0.1 (minor) |
Each patch on that minor |
v0 (major) |
Each release on that major |
Pull a specific version for reproducible deployments:
docker pull ghcr.io/xantiagoma/xtandard-flags:v0.1.0npm Package Contents
Section titled “npm Package Contents”The published package (as declared in files in package.json) includes:
dist/ ← compiled ESM/CJS dual build + type declarationsbin/ ← CLI entry point (xtandard-flags.mjs)docs/ ← this documentation setLICENSEREADME.mdSource files and tests are not included. The UI bundle (dist/ui/) is included inside dist/.