Usage
var increment = require('gulp-increment-version');
gulp.task('increment-version', increment.task);
What it does
- Increment version in package.json
- Increment tag in .drone.yml
- Increment git tag and push it to origin
Configuration
increment.config({
'type': patch | minor | major | prerelease (default = patch),
'use-v-prefix': true | false (default = true),
'push-tag': true | false (default = true),
'wait-before-push': <time before pushing tag / ms> (default = 1000)
});
TODO
- Automatise the distribution flow entirely:
- Discard all changes? (app.constant.js etc?) or Stash all changes!
- Stage everything and commit
- Check out dev
- Push local dev to remote dev
- Merge dev into master
- Push local master to remote master