git clone https://github.com/Bitcoin-Computer-Secrets/monorepo.git
yarn install
lerna bootstrap
Checkout branch dev
. First update package versions using the following command.
yarn create-version
Then obfuscate code and copy to the public packages.
yarn deploy
Commit the changes to dev
git commit
Deploy testing version
yarn publish-testing
Merge dev
to main
and run following command to deploy public versions
yarn publish-npm
Makes sure that current git tree is clean.
yarn git-changes-check
Rename public packages with correct names.
yarn cleanup-public-package-json-testing
Commit these name changes (lerna will only publish if everything is committed).
yarn pre-git-commit
Publish public testing packages, lerna will also make a commit of version update, and then a release will be created on github.
yarn publish
Undo all the name changing.
test-post-publish-changes
Commit and push above changes.
yarn post-git-commit