Release notes does not tolerate prerelease versions
See original GitHub issueWhat You Are Seeing?
Release notes does not tolerate prerelease versions
What is Expected?
Allow prerelease version in release notes
What version of Cake are you using?
0.20
Solution
The problem is in this regex here => https://github.com/cake-build/cake/blob/08907d1a5d97b66f58c01ae82506280882dcfacc/src/Cake.Common/ReleaseNotesParser.cs#L25
To fix this just use the following regex:
(?<Version>\d+(\s*\.\s*\d+){0,3})(?<Release>-[a-z][0-9a-z-]*)?
Source => https://github.com/NuGet/NuGet2/blob/2.13/src/Core/SemanticVersion.cs
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Semantic-Release - pre-release version not incrementing ...
Ran npx semantic-release locally on my computer while have the beta branch checked out after having a commit that would increment the version....
Read more >How do I properly apply semantic versioning if I have more ...
2 Answers 2 · The recommendation to use pre-release versions until you can verify that version is stable and functional is the right...
Read more >Workflow configuration - semantic-release - GitBook
A prerelease property applies only to pre-release branches and the prerelease value must be valid per the Semantic Versioning Specification. It will determine ......
Read more >Publishing pre-releases - semantic-release - GitBook
When pushing that commit, semantic-release will publish the pre-release version 2.0.0-beta.1 on the dist-tag @beta . That allow us to run integration tests ......
Read more >NuGet Package Version Reference
Version ranges in PackageReference include pre-release versions. By design, floating versions do not resolve prerelease versions unless opted ...
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
Start with adding a new SemVersion property and use that to populate Version property.
Yes, go for it!