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 doesn't honor --yes option #3995

Open
mikebargeron opened this issue May 6, 2024 · 0 comments
Open

Lerna doesn't honor --yes option #3995

mikebargeron opened this issue May 6, 2024 · 0 comments

Comments

@mikebargeron
Copy link

Current Behavior

We are trying to create an Azure Pipeline using lerna publish --yes --message "Publishing [skip ci]", but Lerna is ignoring the --yes option and the pipeline stalls waiting for confirmation of the new package version.

Expected Behavior

According to the lerna publish documentation, --yes is supposed to bypass the confirmation prompt, allowing the pipeline to complete unattended. I've tried this from both our build environment, as well as my local command line and confirmed that it is an issue on both MacOS and Ubuntu.

https://github.com/lerna/lerna/tree/main/libs/commands/publish#readme

Steps to Reproduce

The following steps show the issue under Lerna 7.4.2 and Lerna 8.1.2 on both MacOS and Ubuntu:

  1. Make a minor change in one of the monorepo packages
  2. Execute lerna publish --yes from the command line
  3. See that the prompt awaits confirmation for the suggested versions, rather than continuing with out the prompt

Failure Logs / Configuration

The command prompt awaits confirmation for the suggested versions, rather than continuing with out the prompt

Environment

Lerna 7.4.2 or 8.1.2
MacOS, Ubuntu

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