UNPKG

@speakr/speakr-module-services

Version:
31 lines (27 loc) 622 B
var gulp = require('gulp'); var gutil = require('gulp-util'); var exec = require('gulp-exec'); var shell = require('gulp-shell'); var runSequence = require('run-sequence'); var bump = require('gulp-bump'); gulp.task('npm-deploy', function(callback) { runSequence( 'bump', 'git', callback ); }); // Will patch the version gulp.task('bump', () => { gulp.src('./package.json') .pipe(bump({type:'patch'})) .pipe(gulp.dest('./')); }); gulp.task('git', shell.task([ "git pull origin master", "git status", "git add .", "git commit -m 'bumb package.json'", "git push", "npm publish" ]));