Skip to content

Commit 23cd821

Browse files
author
Philipp Alferov
committed
Implement release gulp task
1 parent 9f71154 commit 23cd821

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

gulpfile.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,25 @@ gulp.task('watch:docs', ['serve'], function() {
172172

173173
/*
174174
* Automate npm & bower updates.
175-
* $ gulp bump --type major - using gulp-bump versioning
175+
* $ gulp bump --type major - using gulp-bump versioning
176176
* $ gulp bump --version 1.1.1 - using explicit version number
177177
*/
178-
gulp.task('bump', function() {
178+
gulp.task('release:bump', function() {
179179

180180
return gulp.src('./*.json')
181181
.pipe($.bump(getUpdateType()))
182182
.pipe(gulp.dest('./'));
183183
});
184184

185+
gulp.task('release:commit', function() {
186+
187+
return gulp.src('.')
188+
.pipe($.git.add())
189+
.pipe($.git.commit(':octocat: Bump to ' + getPackageJsonVersion()));
190+
});
191+
192+
gulp.task('release:push', function (cb) {
193+
return $.git.push('origin', 'master', cb);
194+
});
195+
185196
gulp.task('default', ['build']);

0 commit comments

Comments
 (0)