
Changesets Has a Free API — Versioning and Changelogs for Monorepos
Changesets manages versioning, changelogs, and npm publishing for monorepos. Each PR describes what changed — Changesets handles the rest. Why Changesets? Per-PR changelogs — each PR adds a changeset describing the change Automatic versioning — bumps versions based on semver intent Monorepo-aware — handles cross-package dependencies GitHub Action — automates releases via PR Quick Start npm install @changesets/cli npx changeset init Adding a Changeset npx changeset # Select packages that changed # Choose bump type (patch/minor/major) # Describe the change Creates .changeset/fuzzy-dogs-dance.md : --- ' @myorg/ui' : minor ' @myorg/utils' : patch --- Added new Button variant and fixed utility type export. Versioning npx changeset version # Reads all changesets → bumps package versions → generates CHANGELOG.md Publishing npx changeset publish # Publishes all changed packages to npm GitHub Action name : Release on : push : branches : [ main ] jobs : release : runs-on : ubuntu-latest steps :
Continue reading on Dev.to Tutorial
Opens in a new tab


