-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Ignore v
in --repo-version
#1483
Comments
evocateur
added a commit
that referenced
this issue
Jul 13, 2018
This removes any preceding "v" or "=", as well as any trailing build metadata. Refs #1483
This has been fixed in master, but is unlikely to make it into the 2.x release line as the codebase has changed dramatically. |
@evocateur OK! Thank you 😁 |
8 tasks
evocateur
added a commit
that referenced
this issue
Jul 27, 2018
BREAKING CHANGE: * `--preid` now defaults to "alpha" during prereleases: The previous default for this option was undefined, which led to an awkward "1.0.1-0" result when passed to `semver.inc()`. The new default "alpha" yields a much more useful "1.0.1-alpha.0" result. Any previous prerelease ID will be preserved, just as it was before. * `--no-verify` is no longer passed to `git commit` by default, but controlled by the new `--commit-hooks` option: The previous behavior was too overzealous, and the new option operates exactly like the corresponding [npm version](https://docs.npmjs.com/cli/version#commit-hooks) option of the same name. As long as your pre-commit hooks are properly scoped to ignore changes in package.json files, this change should not affect you. If that is not the case, you may pass `--no-commit-hooks` to restore the previous behavior. Fixes #277 Fixes #936 Fixes #956 Fixes #961 Fixes #1056 Fixes #1118 Fixes #1385 Fixes #1483 Fixes #1494
This was referenced Aug 10, 2018
nicolo-ribaudo
pushed a commit
to babel/lerna
that referenced
this issue
Dec 18, 2018
BREAKING CHANGE: * `--preid` now defaults to "alpha" during prereleases: The previous default for this option was undefined, which led to an awkward "1.0.1-0" result when passed to `semver.inc()`. The new default "alpha" yields a much more useful "1.0.1-alpha.0" result. Any previous prerelease ID will be preserved, just as it was before. * `--no-verify` is no longer passed to `git commit` by default, but controlled by the new `--commit-hooks` option: The previous behavior was too overzealous, and the new option operates exactly like the corresponding [npm version](https://docs.npmjs.com/cli/version#commit-hooks) option of the same name. As long as your pre-commit hooks are properly scoped to ignore changes in package.json files, this change should not affect you. If that is not the case, you may pass `--no-commit-hooks` to restore the previous behavior. Fixes lerna#277 Fixes lerna#936 Fixes lerna#956 Fixes lerna#961 Fixes lerna#1056 Fixes lerna#1118 Fixes lerna#1385 Fixes lerna#1483 Fixes lerna#1494
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I want to publish with
circleci
andgit tag
. Normally I usegit tag
likev1.0.0
, and publish incircleci
likeyarn lerna publish --repo-version ${CIRCLE_TAG}
. As a result,yarn lerna publish
will usev1.0.0
to publish packages, but--new-version
ofyarn publish
can not be a version withv
. Maybev
should be ignored with--repo-version
?Expected Behavior
yarn publish --repo-version v1.0.0 // publish packages with version `1.0.0`.
Current Behavior
yarn publish --repo-version v1.0.0 // publish packages with version `v1.0.0`.
Possible Solution
Add
repoVersion.replace(/^v/, '')
in here.Steps to Reproduce (for bugs)
lerna.json
lerna-debug.log
Context
I hope this can publish in
circleci
with mygit tag
, and I want to still havev
in mygit tag
. Likestandard-version
, this will ignorev
when I use--release-as
. Maybelerna
can ignore, too.Your Environment
lerna --version
npm --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: