Tinacms Developer Docs

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

Every PR should include a changeset that documents the changes and prepares them for release.

Creating a Changeset

Every PR should include a changeset that documents the changes and prepares them for release. Here’s how to create one:

  1. Ensure a Clean Working State
    Confirm that you have no uncommitted changes in your working directory.

  2. Run the Changeset Command
    From the root of the repository, execute:

    pnpm changeset
  3. 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.
  4. 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 patch as it is typically safe.
  5. Confirm and Complete
    Follow the prompts until a new .md file is generated in the .changeset directory. This file will describe the changes and the versioning details.

  6. Optional: Edit the Changeset
    You can modify the newly created .md file if you want to adjust the change descriptions or specify different version bumps.

Commit and Push

After creating your changeset:

  1. Commit Your Changes
    Add the changeset file and any other modifications to your commit.

  2. 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.

On this page