Publishing
Deploying Gravis to the NPM registry via Changesets.
Instructions
- In the Gravis-OS project root, do
yarn build
to ensure that all builds pass. - If you are a first-time publisher, ensure that you have setup
.env
file with yourGITHUB_TOKEN=token_here
in the project root. You’ll need to get a new Github Personal Access token. Setup your Github Personal Token with permissions:repo
anduser
. - Now do
yarn changeset version
, notice that the CHANGELOGs throughout the updated packages have been automatically updated. - If you are a first-time publisher, ensure that your shell contains the npm info by doing
npm whoami
. The expected result is1xt
. If you do not get this result, donpm login
. You can find our npm login details from 1Password. - Now do
yarn changeset publish
to deploy the changes to the npm registry. - Finally, commit your changes with the template commit message:
build(web, api): published changeset
and you’re done.