We use lerna to publish our packages. We use the fixed versioning mode.
npm install
npx lerna bootstrap
We use https://github.com/mrahhal/release-cycle as a reference when releasing.
npx lerna changed
If we're updating to a version (usually a major version update) that requires updates to the peer dependencies, then use this npx lerna version ...
command to allow lerna to update what it wants to update, and then go on and update peer dependencies manually (and run npm i
so that the lock file is updated too). After that, commit the changes, and then finally run lerna publish.
npx lerna version [version] --no-git-tag-version --no-push --yes
npx lerna publish [version] --no-push
And if all goes well, push:
git push --follow-tags