lerna
lerna copied to clipboard
Exit code is 1 while lerna success version finished
Expected Behavior
Exit code should be 0
Current Behavior
❯ lerna version patch --yes --no-commit-hooks || echo $?
info cli using local version of lerna
lerna notice cli v4.0.0
lerna info current version 2.0.21
lerna info Looking for changed packages since v2.0.21
Changes:
- xxx-ui: 2.0.21 => 2.0.22
- xxx-ui-demo: 2.0.21 => 2.0.22 (private)
lerna info auto-confirmed
lerna info execute Skipping releases
lerna info git Pushing tags...
lerna WARN gitPush fatal: the receiving end does not support --atomic push
lerna WARN gitPush fatal: the remote end hung up unexpectedly
lerna WARN gitPush error: failed to push some refs to '<Azure DevOps repo URL redacted>'
lerna info gitPush --atomic failed, attempting non-atomic push
lerna success version finished
1
Possible Solution
Steps to Reproduce (for bugs)
- (Will update later)
lerna.json
<!-- Please paste your `lerna.json` here -->
{
"packages": [
"xxx-ui",
"xxx-ui-demo",
"xxx-ui-docs"
],
"npmClient": "yarn",
"version": "2.0.22"
}
lerna-debug.log
<!-- If you have a `lerna-debug.log` available, please paste it here -->
<!-- Otherwise, feel free to delete this <details> block -->
Context
Your Environment
Executable | Version |
---|---|
lerna --version |
4.0.0 |
npm --version |
6.14.14 |
yarn --version |
1.22.11 |
node --version |
v14.17.4 |
OS | Version |
---|---|
WSL2 & Windows 10 | 5.10.16.3-microsoft-standard-WSL2 |
Same issue here with Azure devops.
@webholics, I had the same issue after upgrading to version 4. Downgrading to 3.22.1 was a workaround that worked for me.
My team had the same issue as well. @paulocmoreno's workaround seems to solve it for now.
Same issue here on Azure Devops
Observed the same with 6.6.1 on Azure DevOps