A tool to manage versioning and changelogs with a focus on monorepos
open sourceMITself-hostablefree
Changesets manages versions and changelogs for JavaScript packages, especially in monorepos. Contributors add a small changeset file with each pull request saying which packages change and whether it's a major, minor or patch change; when you release, the CLI bumps every affected package's version (and the packages that depend on it), writes their changelogs and publishes them to npm. It works with npm, Yarn and pnpm workspaces, and its GitHub Action opens a release pull request that publishes when merged. It's MIT-licensed and published on npm as @changesets/cli.
Problems it solves
- bumping versions by hand across thirty packages in our monorepo every release
- keep changelogs for each package without writing them by hand at release time
- when one internal package changes, its dependents in the monorepo should get a version bump too
- let contributors say in their pull request whether their change is a major, minor or patch release
- a bot that opens a release pull request and publishes to npm when it's merged
- conventional commit messages are too strict for our contributors but we still want automated releases
- publish only the packages that actually changed in a pnpm workspace
Features
- changeset files describe each change and its semver bump
- bumps versions of changed packages and their dependents in the workspace
- generates a CHANGELOG.md per package
- publishes changed packages to npm
- supports npm, Yarn and pnpm workspaces
- GitHub Action that opens a release pull request and publishes on merge
- pre-release mode and snapshot releases
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what Changesets does.
- semantic-release Fully automated version management and package publishing
- release-please Generate release PRs based on the Conventional Commits spec
- release-plz Publish Rust crates from CI with a Release PR.
- dist (cargo-dist) Shippable application packaging: build, sign and publish release binaries and installers from a git tag
- Release Drafter Drafts your next release notes as pull requests are merged
- GoReleaser Release engineering, simplified