Skip to content

Commit

Permalink
ci(aio): upload the preview before checking the bundle sizes (#23123)
Browse files Browse the repository at this point in the history
This makes the preview available even if the bundle sizes are out of
limits.

PR Close #23123
  • Loading branch information
gkalpak authored and IgorMinar committed Apr 5, 2018
1 parent 8aa49ac commit 73172dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aio/scripts/deploy-preview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=$(
Expand All @@ -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
)

0 comments on commit 73172dd

Please sign in to comment.