When making changes to the codebase that should result in a version change and an entry in the changelog, you should use changesets.
We use changesets to manage versioning and changelogs for this project.
After making your changes, run:
yarn changeset
- You'll be prompted to select the packages you've modified
- Select the appropriate packages using the space bar, then press enter
- Select the type of change for each package:
major
: Breaking changesminor
: New featurespatch
: Bug fixes and minor changes
- Write a summary of your changes
- A new markdown file will be created in the
.changeset
directory
Commit this file along with your changes.
- When a PR with a changeset is merged to main, a "Version Packages" PR will be automatically created
- This PR updates package versions and changelogs based on the changesets
- When the "Version Packages" PR is merged, packages will be published to npm automatically
Note: If you don't want to trigger a release for your changes, don't add a changeset.