Quick Reference
A quick reference guide for common versioning tasks with Changesets.
Quick Commands
Section titled “Quick Commands”# Add a changeset for your changespnpm changeset
# Check what will be versionedpnpm changeset:status
# Apply version bumps (maintainers only)pnpm version
# Build and publish (maintainers only)pnpm releaseWhen to Use Each Bump Type
Section titled “When to Use Each Bump Type”Patch (0.0.X) - Bug Fixes
Section titled “Patch (0.0.X) - Bug Fixes”- 🐛 Bug fixes
- 📝 Documentation
- 🎨 Style/formatting
- ♻️ Refactoring (no API change)
- ⚡ Performance (no breaking change)
Example:
🦋 Summary: Fix authentication token expiry bug🦋 Bump: patchMinor (0.X.0) - New Features
Section titled “Minor (0.X.0) - New Features”- ✨ New features
- 🔥 Deprecations
- 🚀 Enhancements
- 📦 New optional parameters
Example:
🦋 Summary: Add user profile image upload endpoint🦋 Bump: minorMajor (X.0.0) - Breaking Changes
Section titled “Major (X.0.0) - Breaking Changes”- 💥 Breaking API changes
- ❌ Removed features
- 🔄 Changed behavior
- ⚠️ Required parameter changes
Example:
🦋 Summary: Replace REST auth with OAuth2 (BREAKING)🦋 Bump: majorChangeset Flow
Section titled “Changeset Flow”Make Changes → Create Changeset → Commit & Push → Create PR to main → Review & Merge → Auto Deploy (docs) → Version Bump → ReleaseExample Changeset File
Section titled “Example Changeset File”---"api": minor---
Add WebSocket support for real-time notifications
- New `/ws` endpoint for WebSocket connections- Real-time event streaming- Connection management utilitiesCommit Message Examples
Section titled “Commit Message Examples”Using pnpm commit:
# Featurefeat(api): add user search endpoint
# Bug fixfix(api): resolve JWT validation error
# Breaking changefeat(api)!: redesign authentication API
BREAKING CHANGE: Replace /auth/login with OAuth2PR Workflow
Section titled “PR Workflow”-
Create feature branch from
mainTerminal window git checkout main && git pullgit checkout -b feat/my-feature -
Make changes and commit
Terminal window git add .pnpm commit -
Add changeset
Terminal window pnpm changesetgit add .changesetgit commit -m "chore: add changeset" -
Push and create PR
Terminal window git push -u origin feat/my-feature -
After merge to main
Terminal window # Docs auto-deploy via GitHub Actions# Version bump via automated PR when readygit commit -am "chore: version packages" -
Merge to main → auto-release
- Create changesets for user-facing changes
- Write clear, descriptive summaries
- One changeset per logical change
- Review generated CHANGELOGs
❌ DON’T
Section titled “❌ DON’T”- Skip changesets for features/fixes
- Bundle multiple features in one changeset
- Forget to commit the changeset file
- Edit CHANGELOGs manually
Common Tasks
Section titled “Common Tasks”Check Pending Changes
Section titled “Check Pending Changes”pnpm changeset:statusAdd Changeset for Multiple Packages
Section titled “Add Changeset for Multiple Packages”pnpm changeset# Select multiple packages when promptedView Changesets
Section titled “View Changesets”ls .changeset/*.mdcat .changeset/some-changeset.mdUndo a Changeset
Section titled “Undo a Changeset”Simply delete the changeset file:
rm .changeset/some-changeset.md