Skip to content

Commit ac54d4f

Browse files
committed
Separate pre-publish task
1 parent 17b2adf commit ac54d4f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gulpfile.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ gulp.task('copy-tmp', function() {
114114
});
115115

116116
// Publish to NPM
117-
gulp.task('publish', function(cb) {
118-
runSequence('clean', 'build', 'copy-tmp', 'preinstall-addons', function(err) {
119-
if (err) return cb(err);
120-
exec('cd ./.tmp && npm publish', cb);
121-
});
117+
gulp.task('pre-publish', function(cb) {
118+
runSequence('clean', 'build', 'copy-tmp', 'preinstall-addons', cb);
119+
});
120+
gulp.task('publish', ['pre-publish'], function(cb) {
121+
exec('cd ./.tmp && npm publish', cb);
122122
});
123123

124124
gulp.task('default', function(cb) {

0 commit comments

Comments
 (0)