Skip to content

Commit

Permalink
auto commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Maumasi committed Oct 21, 2016
1 parent 38fa062 commit 5da1619
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ gulp.task('push', () => {
});
});



// bump up the version according to 'patch', 'minor', 'major'
gulp.task('patchBump', () => {
console.log(testit);
Expand Down Expand Up @@ -71,6 +73,14 @@ if (argv.patch) {
bump = 'major';
}

gulp.task('t', [`${bump}Bump`, 'add', 'commit', 'push'], () => {
console.log(version);
gulp.task('default', [`${bump}Bump`, 'add', 'commit', 'push'], () => {

const newVersion = require('./package.json').version;

// Tag the repo with a version
git.tag(`v${newVersion}`, `Version ${newVersion}`, (err) => {
if (err) {
throw err;
}
});
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "url-shortener",
"version": "1.6.3",
"version": "1.6.4",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 5da1619

Please sign in to comment.