NAME
Dist::Zilla::Plugin::GitFlow::NextVersion - provide a version number by bumping the last git flow release tag
VERSION
version 0.006
SYNOPSIS
In your dist.ini:
[GitFlow::NextVersion]
first_version = 0.001 ; this is the default
version_regexp = ^v(.+)$ ; this is the default
When you want to release the module on the develop branch:
$ git flow release start 0.003
#
# edit and commit
#
$ git flow release finish 0.003
After finishing release, then upload your released module:
$ git checkout v0.003
$ dzil release # this will be done with Dist::Zilla::Plugin::UploadToCPAN
If you want to make specific version module tarball:
$ git checkout v0.002
$ dzil build
DESCRIPTION
This does the Dist::Zilla::Role::VersionProvider role. It finds the last version number from your git tags, increments it using Version::Next, and uses the result as the version
parameter for your distribution.
The plugin accepts the following options:
first_version
- Defaults to0.001
version_regexp
- Defaults to^v(.+)$
Above options are same as Dist::Zilla::Plugin::Git::NextVersion. Please check original documents.
You can also set the V
environment variable to override the new version. This is useful if you need to bump to a specific version. For example, if the last tag is 0.005 and you want to jump to 1.000 you can set V = 1.000.
$ V=1.000 dzil build
$ V=1.000 dzil release
SEE ALSO
Dist::Zilla::Plugin::Git::NextVersion
AUTHOR
Keedi Kim - 김도형 <keedi@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Keedi Kim.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.