Release
Kibaco uses Changesets to automate npm releases from main.
One-time Setup
Configure npm Trusted Publishing for the package:
Trusted Publishing uses GitHub Actions OIDC, so no NPM_TOKEN secret is required. npm automatically publishes provenance for public packages from public repositories.
During Development
When a change should be released, create a changeset:
Commit the generated .changeset/*.md file with the code change.
Release Flow
- A change with a changeset is merged to
main - GitHub Actions opens a Version Packages release PR
- Merging that release PR updates versions and changelog
- GitHub Actions publishes the package to npm using OIDC
The workflow checks whether the current package version is already published and skips publishing when it is.
Local Commands
pnpm release is intended for CI. It builds the package and runs changeset publish.