diff --git a/core/scripts/screenshot/ci.js b/core/scripts/screenshot/ci.js index e56380cbe1..66ad475058 100644 --- a/core/scripts/screenshot/ci.js +++ b/core/scripts/screenshot/ci.js @@ -94,7 +94,15 @@ class CIScreenshotConnector extends IonicConnector { ); } - await Promise.all(uploads); + const uploadBatches = []; + + while (uploads.length > 0) { + uploadBatches.push(uploads.splice(0, 10)); + } + + for (const batch of uploadBatches) { + await Promise.all(batch); + } timespan.finish(`publishing build finished`);