agents/VERSIONING.md
pnpm changeset to create a new changeset (choose packages + bump type).pnpm version to update versions and changelogs.As an AI Agent contributor, you may write changesets directly in the changesets directory. Use the following formats:
Filename: YYYY-MM-DD-<your-change-description>.md (e.g., 2024-06-01-add-new-rocket-ship-extension.md)
Contents:
---
'package-name': patch|minor|major
---
A clear, concise description of the user-facing change. Include any relevant details, migration steps, or links to documentation.
Additional, optional extra lines below here can provide more context or information about the change, but the first section should be focused on what users need to know.
The publish workflow is driven by an explicit configuration file at .github/publish-config.json. This is the authoritative source for which branches are published, their npm dist-tags, and the metadata used in version PRs and Slack notifications.
{
"branches": {
"<branch-name>": {
"distTag": "<npm-dist-tag>",
"label": "stable",
"title": "<version-PR-title>",
"commit": "<version-PR-commit-message>"
}
}
}
| Field | Description |
|---|---|
distTag | npm dist-tag passed to pnpm changeset publish --tag. Example: latest, next, v2-latest. |
label | Arbitrary label for Slack announcements (e.g. "stable" or "prerelease"). Shown in the Slack message. |
title | Title used for the Changesets version PR created by the CI. |
commit | Commit message used for the Changesets version PR. |
.github/workflows/publish.yml lists which branches are allowed to start the workflow..github/publish-config.json and looks up the current branch by exact name.A branch must be present in both the workflow trigger list and the publish config to produce a release. This provides a two-layer safety check.
To add a new release branch (e.g., v2):
.github/workflows/publish.yml under on.push.branches..github/publish-config.json under branches, using the exact same branch name.npm dist-tag add <package>@<version> <tag>) if it does not exist yet.To remove a branch from publishing:
.github/publish-config.json.