To publish packages:
yarn pub
Sometimes lerna will fail during the publishing step. This is very annoying and can be a pain to fix.
- Address the reason the publication failed.
- If possible, attempt to republish:
yarn pub
. - Try force publishing:
yarn force-publish
. This will skip the lerna publish step and callnpm
directly.
Lerna sucks when things go wrong. It can happen that not all packages were published, but Lerna will refuse to try again because nothing has changed since it last tried to publish.
Force publish:
yarn force-publish