lerna icon indicating copy to clipboard operation
lerna copied to clipboard

Exit code is 1 while lerna success version finished

Open jizusun opened this issue 3 years ago • 5 comments

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)

  1. (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

jizusun avatar Aug 16 '21 07:08 jizusun

Same issue here with Azure devops.

webholics avatar Aug 30 '21 14:08 webholics

@webholics, I had the same issue after upgrading to version 4. Downgrading to 3.22.1 was a workaround that worked for me.

paulocmoreno avatar Aug 30 '21 14:08 paulocmoreno

My team had the same issue as well. @paulocmoreno's workaround seems to solve it for now.

Elgeneinar avatar Nov 22 '21 15:11 Elgeneinar

Same issue here on Azure Devops

Ruben-E avatar Nov 24 '21 12:11 Ruben-E

Observed the same with 6.6.1 on Azure DevOps

DanChauv avatar Jun 06 '23 21:06 DanChauv