mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-14 00:39:57 -04:00
Gulp: Use correct depenency sequence for publish task.
This commit is contained in:
parent
cbbc7f0bbc
commit
6aa983f367
1 changed files with 1 additions and 3 deletions
|
@ -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.');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue