Skip to content

Commit

Permalink
fixed gulp branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Maumasi committed Oct 21, 2016
2 parents 1e28286 + a1b6889 commit d49f9ed
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ gulp.task('commit', () => {
// remote is the remote repo
// branch is the remote branch to push to
gulp.task('push', () => {
git.push('origin', 'newLogger', (err) => {
git.push('origin', 'master', (err) => {
if (err) throw err;
});
});



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

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

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

// Tag the repo with a version
git.tag(`v${newVersion}`, `Version ${newVersion}`, (err) => {
if (err) {
throw err;
}
});
});

0 comments on commit d49f9ed

Please sign in to comment.