Bump package version.
Install npm package, next to your project's grunt.js
file:
npm install grunt-bump
Add this line to your project's grunt.js
:
grunt.loadNpmTasks('grunt-bump');
Let's say current version is 0.0.1
.
grunt bump
>> Version bumped to 0.0.2
grunt bump:patch
>> Version bumped to 0.0.3
grunt bump:minor
>> Version bumped to 0.1.0
grunt bump
>> Version bumped to 0.1.1
grunt bump:major
>> Version bumped to 1.0.0