We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbbc7f0 commit 6aa983fCopy full SHA for 6aa983f
gulp/tasks/publish.js
@@ -17,8 +17,6 @@ var gulp = require('gulp'),
17
shell = require('gulp-shell'),
18
options = require('../utils/options.js')({ suffix: false });
19
20
-gulp.task('publish', ['publish:bump', 'publish:release']);
21
-
22
gulp.task('publish:bump', function() {
23
return gulp.src([ 'package.json', 'component.json' ])
24
.pipe(bump({ version: options.version }))
@@ -27,7 +25,7 @@ gulp.task('publish:bump', function() {
27
25
.pipe(git.add());
28
26
});
29
30
-gulp.task('publish:release', function() {
+gulp.task('publish', ['publish:bump'], function() {
31
if (options.branch !== 'develop') {
32
throw new Error('Publishing is only allowed on the develop branch.');
33
}
0 commit comments