Ensure version is valid before passing it to semver #98
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There is a use case when using a custom tagPrefix.
In my monorepo I'm trying to implement semver prerelease flow with a custom prefix like so:
<app>/v<semver>-alfa.0 -> <app>/v<semver>-alfa.1 -> <app>/v<semver>-beta.0 -> <app>/v<semver>
It works fine till first stable version is created. After this new pre-release ones are failing as tags are technically invalid according to semver.
This PR attempts to address this issue.
I'd be happy to discard it if there is an existing way to address this.