This repo uses:
developfor day-to-day workmasterfor release readiness- Changesets for versioning and changelogs
- GitHub Actions for validation + publishing
- npm OIDC (no npm tokens)
Add a changeset when a change impacts consumers:
- public API changes (new exports, removals, behavior changes)
- bug fixes
- anything that should be mentioned in release notes
Command:
npx changesetCommit the generated file under .changeset/.
- Create a branch from
develop
feat/...,fix/...,docs/..., etc.
- Open PR into
develop
- PR checks must pass:
- typecheck
- tests
- build
- lint
- format check
- Promote
develop→master
- Open PR from
developtomaster - Release check must pass (optional Sonar if enabled)
Publishing is triggered by pushing a git tag on master.
Steps:
- On
develop, apply versions locally using changesets:
npm run version-packages- Commit the version bump (package.json + changelog output)
git add -A
git commit -m "chore: version packages"
git push-
Merge
develop→master -
Tag the release on
masterand push tag:
git checkout master
git pull
git tag vX.Y.Z
git push origin vX.Y.ZThat tag triggers the CD - Release workflow which publishes via npm OIDC.
- Do not publish from local machines.
- Do not edit
dist/manually (it is build output). - If publishing fails, check GitHub Actions logs first, then npm OIDC configuration.