Change publish:packages task to publish in series

This commit is contained in:
Jürg Lehni 2019-06-10 00:39:11 +02:00
parent cb3fd61b6f
commit 41094cd871

View file

@ -82,11 +82,15 @@ gulp.task('publish:release', function() {
.pipe(shell('npm publish')); .pipe(shell('npm publish'));
}); });
gulp.task('publish:packages', gulp.task('publish:packages', function() {
packages.map(function(name) { // Publish packages in series instead of in parallel, to see if this fixes
return 'publish:packages:' + name; // recent issues with `npm publish`:
}) return run(
); packages.map(function(name) {
return 'publish:packages:' + name;
})
);
});
packages.forEach(function(name) { packages.forEach(function(name) {
gulp.task('publish:packages:' + name, ['publish:version'], function() { gulp.task('publish:packages:' + name, ['publish:version'], function() {