Skip to content
Contributor documentation: how the project is built and released. Not needed to use the library.

Releases

Changelogs are generated from conventional commits using changelogen:

Terminal window
bun run release # = changelogen --release --push

This 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.


  • 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 @xtandard scope must exist on npm (the package publishes with --access public).

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*):

  1. bun install --frozen-lockfile
  2. bun run build (lib + UI + react)
  3. bunx publint (package-correctness check)
  4. npm publish --provenance --access public (auth via OIDC trusted publishing)
  5. 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.


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:

Terminal window
docker pull ghcr.io/xantiagoma/xtandard-flags:v0.1.0

The published package (as declared in files in package.json) includes:

dist/ ← compiled ESM/CJS dual build + type declarations
bin/ ← CLI entry point (xtandard-flags.mjs)
docs/ ← this documentation set
LICENSE
README.md

Source files and tests are not included. The UI bundle (dist/ui/) is included inside dist/.