Add build-metadata to lerna version / publish
See original GitHub issueThe semver standard provides for a ‘build-metadata’ section in the version number, which is separated from the pre-release identifers by a plus-sign (+).
The examples given are +001
, +20130313144700
, +exp.sha.5114f85
.
I would like to see an argument to lerna version and publish that would apply this build metadata consistently across all packages in the repo (irrespective of independent vs fixed versioning)
This is not currently workaroundable with something like --preid=foo+bar
, because:
- This would create a version number like
1.0.0-foo+bar.0
, rather than1.0.0-foo.0+bar
- build-metadata is valid to append to release versions (not just pre-releases)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:9
Top Results From Across the Web
Version and Publish - Lerna
Lerna can increment your package's versions as well as publish your packages to NPM, and it provides a variety of options to make...
Read more >Publish and download universal packages with Azure Artifacts
How to publish and download universal packages to and from ... Package versions must be lowercase without build metadata (+ suffix).
Read more >Semantic Versioning 2.0.0 | Semantic Versioning
Given a version number MAJOR.MINOR.PATCH, increment the: MAJOR version when you make incompatible API changes; MINOR version when you add functionality in a ......
Read more >Automatic versioning in a Lerna monorepo using Github actions
Integrate Lerna in a CI flow to automatically version and publish ... Next, we will add a job to the workflow and configure...
Read more >Version Incrementing - GitVersion
It is important to note that build metadata is not part of the semantic ... Adding +semver: breaking or +semver: major will cause...
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 FreeTop 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
Top GitHub Comments
So sorry for the delay on this one folks, let’s get @rrhodes PR over the line!
Hello @josteph, if you would like to test my changes for Lerna, you should be able to run this from your machine if you pull down my branch of work.
Hoping to have these changes reviewed soon - waiting to hear from Lerna maintainers.