Getting prompted for version despite using --canary --yes with lerna 2.1.0
See original GitHub issueOur 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)
- 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:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This has been fixed in v2.1.1 😃
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 😃