Add support for pre-release versions #43
Merged
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.
Add the ability for
create-github-release
to create a release with a pre-release version asdefined in the Semver 2.0.0 spec.
An example of a pre-release version is
1.0.0-beta.1
.Pre-release versions have a lower precedence than their associated normal version.
This means the pre-release version sorts before the associated release version. For
example,
1.0.0-beta.1
comes before1.0.0
. A pre-release version indicates thatthe version is unstable and might not yet satisfy the intended compatibility
requirements as denoted by its associated normal version
This gem limits pre-release versions to the form
MAJOR.MINOR.PATCH-PRERELEASE
wherePRERELEASE
can ONLY have the following form:TYPE.DIGITS
.TYPE
is any textstring allowed in the Semver 2.0.0 spec and is typically 'alpha', 'beta', 'pre',
'rc', etc.
DIGITS
is a numeric identifier that does not include leading zeroes.Create the first pre-release version for the next minor release
If the current release is
1.0.0
, the command to create a pre-release for the next minor version where the pre-release type isalpha
would be:This will create a release whose version is
1.1.0-alpha.1
.Create subsequent pre-releases
If the current release is
1.1.0-alpha.1
, the command to create the nextalpha
release would be:This will create a release whose version is
1.1.0-alpha.2
.Change the pre-release type
If the current release version is
1.1.0-alpha.2
, the command to create the release where the pre-release type isbeta
would be:This will create a release whose version is
1.1.0-beta.1
.Create the release after pre-release
If the current release version is
1.1.0-beta.1
, the command to create the normal / non-pre-release would be:This will create a release whose version is
1.1.0
.