Skip to content
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 exit code 1 #3939

Open
T0miii opened this issue Jan 25, 2024 · 0 comments
Open

Lerna publish exit code 1 #3939

T0miii opened this issue Jan 25, 2024 · 0 comments

Comments

@T0miii
Copy link

T0miii commented Jan 25, 2024

Current Behavior

Lerna publish returns exit code 1 but still manages to publish packages
image

Expected Behavior

Expect Lerna publish command to exit with code 0

Steps to Reproduce

Have Following script in the Azure build pipeline

      - script: |
          lerna run build
        displayName: 'Try to build project'


      - script: |
          git fetch
          git checkout feature/mono-repo-setup 
          lerna publish patch --yes --loglevel silly
        displayName: 'Lerna Publish'

Failure Logs / Configuration

lerna.json

{
  "$schema": "node_modules/lerna/schemas/lerna-schema.json",
  "version": "3.1.6",
  "packages": [
    "packages/*"
  ]
}

lerna-debug.log

<!-- If you have a `lerna-debug.log` available, please paste it here -->
<!-- Otherwise, feel free to delete this <details> block -->

Environment

Lerna version 8.0.2
Azure Devops Pipeline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant