Trustline uses Changesets to manage versioning and npm publication.
-
Add a changeset in every user-facing PR:
bun run changeset
-
Choose the package bump:
patchfor fixes and small behavior correctionsminorfor backward-compatible featuresmajorfor breaking changes
- Merge the PR to
main. - The release workflow opens or updates a
Version PackagesPR. - Merge that PR to publish the package to npm and create the git tag and GitHub release.
The release job only publishes after these commands pass:
bun run build
bun run test
bun run typecheckIf GitHub Actions is unavailable, you can still cut a release locally:
bun run release:version
bun run release- Enable npm trusted publishing for this repository in npm.
- Ensure the npm package name is available to your account or organization.
- Protect
mainso CI passes before merge.