2.0.0 • Published 8 years ago
@neo9/gulp-release-tag v2.0.0
gulp-release-tag
Release plugin for Gulp inspired from gulp-release-tasks that follows automate release workflow guidelines from gulpjs.org.
Usage
npm install gulp-release-tag --save-dev
// gulpfile.js
var gulp = require('gulp');
require('gulp-release-tag')(gulp);gulp -T for a list of available commands
Tasks
gulp bump-version
gulp bump-version
Bumps the versions of your package.json and bower.json
-t: Type (optional), options: patch, minor, major, default: patch
gulp commit-changes
gulp commit-changes
Create an automatic commit : release: Version v{version}
gulp push-changes
gulp push-changes
Push commit to a branch
-b: Branch (optional), default: master
gulp create-new-tag
gulp create-new-tag
Create a new tag : v{version} and push it to origin
gulp release
gulp release
Run the following sequence:
bump-versioncommit-changespush-changescreate-new-tag
All options passed to gulp release will be used by the different tasks of the sequence.
| Task | Workflow |
|---|---|
| gulp release (-b develop) | v0.0.1 -> v0.0.2 + commit + push develop + tag + push tag |
| gulp release (-t minor) | v0.0.1 -> v0.1.0 + commit + push master + tag + push tag |
| gulp release (-t major) | v0.0.1 -> v1.0.1 + commit + push master + tag + push tag |
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
2.0.0
8 years ago