question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting prompted for version despite using --canary --yes with lerna 2.1.0

See original GitHub issue

Our canary builds broke after updating from 2.0.0 to 2.1.0, they now get stuck because lerna is asking our CI server to pick a version.

Expected Behavior

lerna publish --npm-client=npm --exact --loglevel silly --canary --yes --skip-git --skip-temp-tag "--registry" "https://REDACTED/artifactory/api/npm/npm-snapshot-local/"

lerna sill input [ 'publish' ]
lerna sill flags { _: [ 'publish' ],
lerna sill flags   exact: true,
lerna sill flags   yes: true,
lerna sill flags   'skip-git': true,
lerna sill flags   skipGit: true,
lerna sill flags   'npm-client': 'npm',
lerna sill flags   npmClient: 'npm',
lerna sill flags   loglevel: 'silly',
lerna sill flags   canary: true,
lerna sill flags   c: true,
lerna sill flags   'skip-temp-tag': true,
lerna sill flags   skipTempTag: true,
lerna sill flags   registry: 'https://REDACTED/artifactory/api/npm/npm-snapshot-local/' }
lerna verb rootPath /REDACTED/master
lerna info version 2.0.0
lerna sill isInitialized 
lerna sill isInitialized true
lerna sill existsSync /REDACTED/master/VERSION
lerna sill initialize attempt
lerna info canary enabled
lerna info current version 0.11.12

Current Behavior

lerna publish --npm-client=npm --exact --loglevel silly --canary --yes --skip-git --skip-temp-tag "--registry" "https://REDACTED/artifactory/api/npm/npm-snapshot-local/"

lerna sill input [ 'publish' ]
lerna sill flags { _: [ 'publish' ],
lerna sill flags   exact: true,
lerna sill flags   yes: true,
lerna sill flags   'skip-git': true,
lerna sill flags   skipGit: true,
lerna sill flags   'npm-client': 'npm',
lerna sill flags   npmClient: 'npm',
lerna sill flags   loglevel: 'silly',
lerna sill flags   canary: '',
lerna sill flags   c: '',
lerna sill flags   'skip-temp-tag': true,
lerna sill flags   skipTempTag: true,
lerna sill flags   registry: 'https://REDACTED/artifactory/api/npm/npm-snapshot-local/' }
lerna verb rootPath /REDACTED/master
lerna info version 2.1.0
lerna sill isInitialized 
lerna sill isInitialized true
lerna sill existsSync /REDACTED/master/VERSION
lerna sill initialize attempt
lerna info current version 0.11.12

Possible Solution

When I supply --canary --yes I should not be asked for a version.

Steps to Reproduce (for bugs)

  1. Run lerna publish --canary --yes
lerna.json

{
  "lerna": "2.0.0",
  "packages": [
    "packages/*"
  ],
  "npmClient": "yarn",
  "version": "0.11.12"
}

Context

Your Environment

Executable Version
lerna --version 2.1.0
npm --version 4.2.0
yarn --version 0.27.5
node --version 7.10.1
OS Version
Debian Jessie

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
evocateurcommented, Aug 29, 2017

This has been fixed in v2.1.1 😃

1reaction
tkissing-workcommented, Aug 28, 2017

Thanks for the work-around tip @Jmsa and for the quick fix @evocateur Bugs happen, it’s the reaction to it that matters - and seeing more/better unit tests is the kind of reaction I like 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

@lerna/prompt | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Lerna NPM | npm.io
Publish packages in the current Lerna project. When run, this command does the following: Creates a new release of the packages that have...
Read more >
Source - GitHub
[5.6.2](https://github.com/lerna/lerna/compare/v5.6.1...v5.6.2) ... Bug Fixes - **publish:** Use package version as fallback for independent canary bump ...
Read more >
Automatic versioning in a Lerna monorepo using Github actions
Integrate Lerna in a CI flow to automatically version and publish ... be triggered every time that a Pull Request gets opened or...
Read more >
Support specifying a multi-level image name in Gitlab ...
GitLab Shell version >= 2.7.2 ? ... OK (2.7.2) Repo base directory exists? ... yes Repo base directory is a symlink? ... no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found