The workflow for building and publishing Clarity is found below. This assumes you are working on the default branch of the repository for this version.
- Run
yarn build
from the root. This will build and test everything just like a normal CI build. - Update the version found in the root
package.json
file to the new version, then runyarn publish:version
to sync the version across the project. - Update the website release notes files as necessary to track changes and documentation.
- Commit the changes with format like
chore: release v4.0.0
. Also tag it with a version tag likev4.0.0
. - Run a publish script, depending on what type of release you are doing:
yarn publish:latest
this is a standard release for the latest version of Clarity.yarn publish:next
this is a prerelease version for the next Clarity release.yarn publish:rc
this is a release candidate version for the next Clarity release.yarn publish:local
this is a test candidate for local development with verdaccio.
- Push the changes to Clarity branch on GitHub.