-
Notifications
You must be signed in to change notification settings - Fork 0
Publish versions
- 1: Apply the Changesets
- 2: Commit all the changes
- 3: Update/Create the release branches
- 4: Push all the branches
- 5 (Optional): Deleting unsupported old releases
- 6: Publish the new version on npm
Run pnpm run changeset:version
.
- Add all the changes:
git add .
. - Commit all the changes:
git commit
.
The release branch should not exist. If it does, remove it before continuing.
Run git branch releases/<MAJOR> master
where <MAJOR>
is the new major
version. Finally, run git checkout master
to return to the master branch.
The release branch should already exist. If not, follow the subsection above.
Run git fetch . master:releases/<MAJOR>
where <MAJOR>
is the current major
version.
Run git push origin --all --set-upstream
.
Note: This will run the CI to update the documentation. Please wait until the CI is passing before continuing.
It is recommended to support the last two or three major versions, this means that bug fixes and security updates can be backported via release branches.
If you do not plan to support a previous release, you must delete its branch. This will cause the related documentation to be pruned on the next CI run.
- Remove the branch locally:
git branch -d releases/<OLD_MAJOR>
, where<OLD_MAJOR>
is the unsupported major version. - Remove the branch on the remote:
git push --delete releases/<OLD_MAJOR>
.
This can not be undone easily, double check if everything is correct.
Run pnpm publish
.