docs/adding-a-changeset.md
Hi! You might be here because a person or a bot has asked you to 'add a changeset' to a project. Let's walk through adding a changeset. But first, what is a changeset?
A changeset is a piece of information about changes made in a branch or commit. It holds three bits of information:
yarn changeset or pnpm changeset or npx @changesets/cli.After this, a new changeset will be added which is a markdown file with YAML front matter.
-| .changeset/
-|-| UNIQUE_ID.md
The message you typed can be found in the markdown file. If you want to expand on it, you can write as much markdown as you want, which will all be added to the changelog on publish. If you want to add more packages or change the bump types of any packages, that's also fine.
While not every changeset is going to need a huge amount of detail, a good idea of what should be in a changeset is:
yarn changeset or pnpm changeset or npx @changesets/cli.After this, a new changeset will be added which is a markdown file with YAML front matter.
-| .changeset/
-|-| UNIQUE_ID.md
The message you typed can be found in the markdown file. If you want to expand on it, you can write as much markdown as you want, which will all be added to the changelog on publish. If you want to change the bump type for the changeset, that's also fine.
While not every changeset is going to need a huge amount of detail, a good idea of what should be in a changeset is:
Changesets are designed to stack, so there's no problem with adding multiple. You might want to add more than one changeset when: