Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version scheme #2

Open
stojad opened this issue Apr 17, 2020 · 0 comments
Open

Version scheme #2

stojad opened this issue Apr 17, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@stojad
Copy link
Collaborator

stojad commented Apr 17, 2020

If you want a basic versioning strategy, this is the approach I use based on GitFlow branching and SemVer 2.0.0:

  1. Merges to master build a release with version major.minor.build, where the major.minor tuple is the current stable release version (generally maintained as a branch-specific variable in your CI tool of choice), so build 3 of release 1.0 would be 1.0.3. This allows you to use merges of post-release bugfix branches back into master to auto-increment the patch number for bugfix releases.

  2. Merges into dev follow a similar pattern as master, except the build version is major.minor.0-branch.build, so pre-release builds are tagged with the non-master branch they came from. Say dev is the active development branch for my next minor release, then I set major.minor to 1.1 for dev, then build 5 of my dev branch would be 1.1.0-dev.5.

@stojad stojad added the enhancement New feature or request label Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant