From 73172dd67a397916a52237c607762df8c0dcffe3 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Mon, 2 Apr 2018 11:27:22 +0300 Subject: [PATCH] ci(aio): upload the preview before checking the bundle sizes (#23123) This makes the preview available even if the bundle sizes are out of limits. PR Close #23123 --- aio/scripts/deploy-preview.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aio/scripts/deploy-preview.sh b/aio/scripts/deploy-preview.sh index 5701f2a3ce..70b3e2ee84 100755 --- a/aio/scripts/deploy-preview.sh +++ b/aio/scripts/deploy-preview.sh @@ -30,7 +30,6 @@ readonly relevantChangedFilesCount=$(git diff --name-only $TRAVIS_COMMIT_RANGE | yarn build fi tar --create --gzip --directory "$INPUT_DIR" --file "$OUTPUT_FILE" . - yarn payload-size # Deploy to staging readonly output=$( @@ -53,4 +52,7 @@ readonly relevantChangedFilesCount=$(git diff --name-only $TRAVIS_COMMIT_RANGE | if [[ $httpCode -ne 202 ]] && [[ "$isHidden" != "true" ]]; then yarn test-pwa-score "$DEPLOYED_URL" "$MIN_PWA_SCORE" fi + + # Check the bundle sizes. + yarn payload-size )