About Changeset's
This page will help you understand the pull request (PR) workflow and how to properly handle changesets as part of your contribution.
Note
Creating a Changeset
Every PR should include a changeset that documents the changes and prepares them for release. Here’s how to create one:
-
Ensure a Clean Working State
Confirm that you have no uncommitted changes in your working directory. -
Run the Changeset Command
From the root of the repository, execute:pnpm changeset -
Select Affected Packages
- Choose only the packages you directly modified.
- Tip: After selecting packages, wait a couple of seconds to ensure your choices are registered.
Note
You don’t need to select packages that only depend on the ones you worked on. The release process will automatically handle dependencies later. -
Specify the Version Change Type
- Choose the version change type for each package:
- Patch: For minor fixes.
- Minor: For new features that don’t break backward compatibility.
- Major: For breaking changes.
- If unsure, choose
patchas it is typically safe.
- Choose the version change type for each package:
-
Confirm and Complete
Follow the prompts until a new.mdfile is generated in the.changesetdirectory. This file will describe the changes and the versioning details. -
Optional: Edit the Changeset
You can modify the newly created.mdfile if you want to adjust the change descriptions or specify different version bumps.
Commit and Push
After creating your changeset:
-
Commit Your Changes
Add the changeset file and any other modifications to your commit. -
Push and Create a PR
Push your branch to GitHub and open a pull request (PR). The system will check for the presence of a changeset file in the PR.