From 41094cd871334611c175c18a2317ab552c726b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 10 Jun 2019 00:39:11 +0200 Subject: [PATCH] Change publish:packages task to publish in series --- gulp/tasks/publish.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/gulp/tasks/publish.js b/gulp/tasks/publish.js index 73d36d78..8d3166ec 100644 --- a/gulp/tasks/publish.js +++ b/gulp/tasks/publish.js @@ -82,11 +82,15 @@ gulp.task('publish:release', function() { .pipe(shell('npm publish')); }); -gulp.task('publish:packages', - packages.map(function(name) { - return 'publish:packages:' + name; - }) -); +gulp.task('publish:packages', function() { + // Publish packages in series instead of in parallel, to see if this fixes + // recent issues with `npm publish`: + return run( + packages.map(function(name) { + return 'publish:packages:' + name; + }) + ); +}); packages.forEach(function(name) { gulp.task('publish:packages:' + name, ['publish:version'], function() {