Automate versioning with Changesets
Automate versioning and npm publishing with Changesets, including a GitHub Actions workflow triggered by changeset merges to main.
Preview
Copy prompt
Set up automated semantic versioning and npm publishing for a [Language] package using the Changesets tool. Walk through the developer workflow: how a contributor creates a changeset file describing their change as patch, minor, or major. Show how the maintainer runs the version command to bump all affected package versions and update changelogs from the accumulated changesets. Show the publish command. Finally write a GitHub Actions workflow that opens a release PR whenever new changesets are merged to main and automatically publishes when that release PR is merged.
More
Git & Version Control
Prompts
