Changesets
Changesets is a way to manage your versioning and changelogs
Installation
More information from their docs
NOTE
The rest of this guide assumes you're using npm. But you can use
pnpm, yarn or whatever you like.
npm install @changesets/cli && npx changeset initUsage & Commands
npx changeset
This will start the interactive CLI to create a new changeset. Unlike commits, changesets are meant to be a proper english sentence.
npx changesetManual versioning
Versioning your app/package is usually done in the CI. In case you're in a situation where you don't have access to the CI, you can use the following commands to bump the version.
- Be sure to have the latest commit in your
mainby runninggit pull - Bump the version by running
npm changeset version. This will...- Bump the version in
package.json - Create or update the
CHANGELOG.mdfile
- Bump the version in
- Commit the changes. Preferably, use a semantic commit message.
git commit -m "chore(release): version application"
- Push the changes to the remote repository
- Switch to
productionbranch and rebase it frommain. - Push the changes to the remote repository.
- And your done!