Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

Support pre-releases #25

Closed
alcaeus opened this issue Nov 12, 2019 · 2 comments
Closed

Support pre-releases #25

alcaeus opened this issue Nov 12, 2019 · 2 comments
Assignees
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@alcaeus
Copy link
Member

alcaeus commented Nov 12, 2019

The tool currently doesn't support alpha, beta or RC releases. Versioning should detect pre-release versions and:

  • create the appropriate release branch if necessary
  • roll the release as usual, except that the GitHub release should be marked as pre-release
  • trigger merge-up as usual

The tool should also check if the release is possible. This expands on the checks already present for regular releases. To check this, the following is valid:

  • alpha < beta < RC
  • the pre-release number may only reset when switching to a higher stability
  • pre-releases for patch versions are:
    ** forbidden if a newer patch release in any stability in the same minor version exists (e.g. releasing 1.0.0-beta1 when 1.0.1 has been tagged)
    ** allowed if a newer minor version exists (e.g. releasing 1.0.1-beta1 when 1.1.0 has been tagged)
  • pre-releases for minor versions (i.e. 1.1.0) areL
    ** forbidden if a newer minor release of the same major version has been tagged, regardless of its stability (e.g. releasing 1.1.0-beta1 when 1.2.0 has been tagged)
    ** allowed if a newer major version exists (e.g. releasing 1.1.0-beta1 when 2.0.0 has been tagged)
  • pre-releases for major versions (i.e 2.0.0) are forbidden if a newer major release has been tagged, regardless of its stability (e.g. releasing 2.0.0-beta1 when 3.0.0 has been tagged)
@Ocramius
Copy link
Member

Probably need to plug in a SemVer comparison library when implementing this

@Ocramius
Copy link
Member

Ocramius commented Aug 2, 2020

Moved to laminas/automatic-releases#25

@Ocramius Ocramius closed this as completed Aug 2, 2020
@Ocramius Ocramius self-assigned this Aug 2, 2020
@Ocramius Ocramius added duplicate This issue or pull request already exists enhancement New feature or request labels Aug 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants