Skip to content

Commit 6aa983f

Browse files
committed
Gulp: Use correct depenency sequence for publish task.
1 parent cbbc7f0 commit 6aa983f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

gulp/tasks/publish.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ var gulp = require('gulp'),
1717
shell = require('gulp-shell'),
1818
options = require('../utils/options.js')({ suffix: false });
1919

20-
gulp.task('publish', ['publish:bump', 'publish:release']);
21-
2220
gulp.task('publish:bump', function() {
2321
return gulp.src([ 'package.json', 'component.json' ])
2422
.pipe(bump({ version: options.version }))
@@ -27,7 +25,7 @@ gulp.task('publish:bump', function() {
2725
.pipe(git.add());
2826
});
2927

30-
gulp.task('publish:release', function() {
28+
gulp.task('publish', ['publish:bump'], function() {
3129
if (options.branch !== 'develop') {
3230
throw new Error('Publishing is only allowed on the develop branch.');
3331
}

0 commit comments

Comments
 (0)