Example of lerna postversion lifecycle being executed twice.
yarn
yarn release
The version
script should succeed and the postversion
script fail.
Both version
and postversion
fail due to the npm-scripts
lifecycle hooks executing the postversion
when version
is run, and then lerna executing postversion
later, after the version has been committed.