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.

Release notes does not tolerate prerelease versions

See original GitHub issue

What 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:closed
  • Created 6 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
devleadcommented, Oct 9, 2021

Start with adding a new SemVersion property and use that to populate Version property.

1reaction
augustoproietecommented, Oct 8, 2021

Yes, go for it!

Read more comments on GitHub >

github_iconTop 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 >

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