-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lerna Publish should first check if publishing is possible #1177
Comments
I'd also suggest to do |
#1317 fixed the "upstream ahead of local clone" problem, we still don't have preflight npm checks (such as |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Currently, Lerna publish starts publishing to npm and git without checking for potential git problems like git remote branch being ahead.
This can lead to consistency issues.
In our scenario, we run a CI build on each push to master that calls:
lerna publish --exact --cd-version minor --yes
. If we merge 2 PRs quickly the CI build is stuck. What happens:Expected Behavior
npm packages should not be published if git remote branch is ahead.
Current Behavior
npm packages are published even though git push is impossible.
Possible Solution
Check if git push is possible before npm publish. Consider a flag if the build should fail.
lerna.json
Your Environment
lerna --version
npm --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: