Closed lwhiteley closed 10 years ago
think that was my fault, I bumped the release number twice. After the release of v0.0.7 we didn't need to bump, but do a pre-release. I think I will fix this to be a bit more clear
cool no prob
Turns out grunt-bump has a darn bug with pre-release. I am going to fork https://github.com/ferronrsmith/grunt-contrib-bump and add the missing features.
We are going to move to semantic versioning from now on, the specification can be found here : http://semver.org/
And the implementation is as follows:
grunt bump:major # bump major version, eg. 1.0.2 -> 2.0.0 grunt bump:minor # bump minor version, eg. 0.1.3 -> 0.2.0 grunt bump:patch # bump minor version, eg. 0.0.1 -> 0.0.2
grunt bump:prerelease # bump prerelease version, eg. 0.0.1-9 -> 0.0.1-10
grunt bump:prerelease # bump prerelease version, eg. 1.0.2 -> 1.0.2-0 grunt bump:prerelease # bump prerelease version, eg. 0.1.3 -> 0.1.3-0 grunt bump:prerelease # bump prerelease version, eg. 0.0.1 -> 0.0.1-0
grunt bump:major:prerelease # eg. 1.0.2 -> 2.0.0-0 grunt bump:minor:prerelease # eg. 0.1.3 -> 0.2.0-0 grunt bump:patch:prerelease # eg. 0.0.1 -> 0.0.2-0
grunt bump:ma:pr # still works, eg. 1.0.2 -> 2.0.0-0 grunt bump:mi:pr # still works, eg. 0.1.3 -> 0.2.0-0 grunt bump:pa:pr # still works, eg. 0.0.1 -> 0.0.2-0
grunt bump:git # still works, eg. 0.1.0 -> 0.1.0+sha.c8ba77d grunt bump:pr:git # still works, eg. 0.1.0-0 -> 0.1.0-0+sha.c8ba77d
NB: Note in our case we are doing patch releases when we do a distribution.
in the previous release,
we went
0.0.8
pre releases to version0.0.9
.in the end there was no version
0.0.8