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.

conventional prerelease not generating a prerelease version

See original GitHub issue

Expected Behavior

one of these inputs:

lerna version --conventional-commits --conventional-prerelease
lerna version --conventional-commits --conventional-prerelease=@loggi/fake-package
lerna version --conventional-commits --conventional-prerelease=*

generating this output:

Changes:
 - @loggi/fake-package: 6.4.0 => 6.5.0-alpha.0

Current Behavior

always generating this output:

Changes:
 - @loggi/fake-package: 6.4.0 => 6.5.0

Possible Solution

  • i’m using the cli wrong
lerna.json

{
  "version": "6.4.0",
  "changelog": {
    "repo": "loggi/fake-ui",
    "cacheDir": ".changelog",
    "labels": {
      "PR: Breaking Change :boom:": ":boom: Breaking Change",
      "PR: New Feature :rocket:": ":rocket: New Feature",
      "PR: Bug Fix :bug:": ":bug: Bug Fix",
      "PR: Polish :nail_care:": ":nail_care: Polish",
      "PR: Docs :memo:": ":memo: Documentation",
      "PR: Internal :house:": ":house: Internal"
    }
  },
  "packages": ["apps/*", "components/", "libs/*", "targets/*"]
}

Context

i’m trying to setup an automated prerelease setup (version & publish), but can’t get the version command right.

lerna version prerelease --conventional-commits --conventional-prerelease

worked, but bumped a patch instead of following conventional commits and bumping a minor. (committed using feat)

Your Environment

Executable Version
lerna --version 3.13.1
npm --version 6.4.1
node --version 8.15.1
OS Version
macOS Sierra 10.12.3

Issue Analytics

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

github_iconTop GitHub Comments

5reactions
evocateurcommented, May 23, 2019

lerna version --conventional-prerelease was released in v3.14.0. You report lerna --version as 3.13.1, so…

npm rm -D lerna
npm i -D lerna@latest
0reactions
github-actions[bot]commented, Jun 17, 2022

Hi Folks 👋

You will have seen in our message above that we at Nrwl are working really hard to bring the lerna repo up to date with what matters most to its community in June 2022.

As previously stated in that message, because we have not heard from the original author of this issue within the last 14 days, we are now automatically closing it.

If any users, including the original author, are still impacted by this issue then we still want to hear from you!

All we ask is that you first update to the latest lerna (5.1.4 at the time of writing) to make sure it is still reproducible, and then fill out one of our new issue templates, providing all the requested details which apply to your situation:

https://github.com/lerna/lerna/issues/new/choose

Many thanks again! 🙏


P.S. Over and above getting to grips with the repo, we have also been hard at work launching a new website, resolving all vulnerabilities, merging exciting new features and reigniting community PR contributions! 🚀

You can read our recent blog post to learn more about what we’ve been up to: https://blog.nrwl.io/lerna-5-1-new-website-new-guides-new-lerna-example-repo-distributed-caching-support-and-speed-64d66410bec7

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can Lerna bump prerelease version according to the ...
It doesn't seem that Lerna 3.20.2 is able to bump prerelease versions (e.g. 1.0.0-alpha.0 ) according to the Conventional Commits ...
Read more >
Workflow configuration - Semantic Release - GitBook
The pre-release denotation to append to semantic versions released from this ... that would create a version conflict is pushed, semantic-release will not...
Read more >
Version Command - Melos
Automatically version and generate changelogs for all packages. melos version ... Version any packages with changes as a prerelease. Cannot be combined with ......
Read more >
Standard Version
Build Status NPM version Coverage Status Conventional Commits community slack ... NOTE: you can combine --release-as and --prerelease to generate a release.
Read more >
Bump - Commitizen
It is possible to specify a prerelease (alpha, beta, release candidate) ... -ch generate the changelog for the newest version --no-verify this option ......
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