High level components for CZ Biohub. Based on CZI's Science Design System and Material UI v5.
To get started, visit the introduction documentation.
On the first time cloning this repo, run yarn build
first.
Run storybook with live refresh: yarn dev
from project root.
If there are any build errors, try running yarn build
again as it may fix some issues.
- Run
yarn changeset
in the project's root directory. - Mark the packages that need to have their version bumped up.
- Make sure to follow the SemVer Versioning spec
- Answer the remaining questions.
- Commit the new changeset into git.
- Remember to push those changes into your branch before making a PR!
You will need to be on the czb-ui
npm organization with 2FA enabled. Make sure you are also on the main
branch.
- Run
yarn changeset version
in the project's root directory. Note after running this command you should not make anymore commits after step 2. - Commit the changes the command made.
- Run
yarn build
in the project's root directory. - Run
yarn changeset publish
in the project's root directory. - Run
git push && git push --tags
to push the remaining commits and tags made from the previous commands.
Please do not follow these steps in the main
branch.
- Switch to the
prerelease
branch. - Make sure the changesets pre-release is configured. This can be checked by the
mode
andtag
values in.changeset/pre.json
.head .changeset/pre.json
If{ "mode": "pre", "tag": "alpha", "initialVersions": {
.changeset/pre.json
does not exist, pre-releases are not configured. Please see the changesets pre-releases documentation. - Merge
main
into theprerelease
branch. - Run the regular steps under "Publishing a version to npm".
If you get warnings like this running yarn changeset version
:
Package "docs" must depend on the current version of "@czb-ui/biohub-logos": "1.0.0-alpha.0" vs "*"
These can be ignored. Since the apps are built using whatever is in the monorepo, and are also not published to npm, they don't need to stick to a specific version.