This repository uses Changesets to manage versions, create changelogs, and publish to npm.
- Make changes
- Add a changeset using
pnpm changeset
- Commit and push
- Create a PR
- When the PR is merged, a "Version Packages" PR will be automatically created
- When the "Version Packages" PR is merged, packages will be published to npm automatically
To create a changeset, run:
pnpm changeset
This will:
- Ask which packages you want to release
- Ask what type of version change it is (major, minor, patch)
- Ask for a summary of the changes
This will create a markdown file in the .changeset
directory that should be committed with your changes.
The CI/Release process is streamlined into a single workflow:
- All PRs and main branch commits trigger the CI process (build, type check, lint, test)
- When changes are merged to the main branch, the same workflow also:
- Creates or updates a "Version Packages" PR that includes version bumps and changelog updates
- When the Version Packages PR is merged, automatically publishes packages to npm
If you need to do a manual release:
- Run
pnpm changeset version
to update versions and changelogs - Run
pnpm build
to build all packages - Run
pnpm changeset publish
to publish to npm