This is a work-in-progress document and will be updated as we refine our release process.
We track versions during the pull request process. As features are added, modified or improved it's important to keep track of these via versioning.
PRs that fix bugs or add features should include an addition to packages/radix-ui-themes/CHANGELOG.md under a new version heading. The actual release version may differ, so be sure to double check this at publish time.
You must be a maintainer of the repository and have write access to publish a release.
- Create a new branch for the release. We recommend the branch naming convention
release/<version>for this (e.g.release/3.3.0). - Update the version in
packages/radix-ui-themes/package.jsonand ensure the changelog is up to date. - Add and commit with the commit message of
v<version>(e.g.v3.3.0). - Push the branch to the repository and create a pull request.
- When checks pass and the pull request is approved, merge it into
main. - Create a new tag for the release with the format
<version>(e.g.3.3.0).- If you do this locally, be sure to pull the latest changes from
mainto ensure you have the new version changes from the previous step.
- If you do this locally, be sure to pull the latest changes from
- Create a new GitHub release from the tag. Use the changelog entry for the version as its release notes.
- The GitHub action will be triggered by the
publishworkflow and will automatically publish the package to npm.
To publish a pre-release you must build and publish manually. Use
pnpm publish -r --tag <tag>, where<tag>is the pre-release tag (e.g.alpha,beta,rc)
Our documentation is in a separate repository and updating it is a three step process:
- Write and update the change log
- Bump package version/s and create / update the pages for each version change
- Perform documentation updates and remove live demos from previous versions