Gulp: Use correct depenency sequence for publish task.

This commit is contained in:
Jürg Lehni 2016-07-09 16:37:00 +02:00
parent cbbc7f0bbc
commit 6aa983f367

View file

@ -17,8 +17,6 @@ var gulp = require('gulp'),
shell = require('gulp-shell'),
options = require('../utils/options.js')({ suffix: false });
gulp.task('publish', ['publish:bump', 'publish:release']);
gulp.task('publish:bump', function() {
return gulp.src([ 'package.json', 'component.json' ])
.pipe(bump({ version: options.version }))
@ -27,7 +25,7 @@ gulp.task('publish:bump', function() {
.pipe(git.add());
});
gulp.task('publish:release', function() {
gulp.task('publish', ['publish:bump'], function() {
if (options.branch !== 'develop') {
throw new Error('Publishing is only allowed on the develop branch.');
}