Skip to content

Commit 8491324

Browse files
committed
Fix publish task
1 parent d41a3bd commit 8491324

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

gulpfile.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,11 @@ gulp.task('copy-tmp', function() {
111111
});
112112

113113
// Publish to NPM
114-
gulp.task('publish', 'clean', 'build', 'copy-tmp', 'preinstall-addons', function(cb) {
115-
exec('cd ./.tmp && npm publish', cb);
114+
gulp.task('publish', function(cb) {
115+
runSequence('clean', 'build', 'copy-tmp', 'preinstall-addons', function(err) {
116+
if (err) return cb(err);
117+
exec('cd ./.tmp && npm publish', cb);
118+
});
116119
});
117120

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

0 commit comments

Comments
 (0)