diff --git a/package.json b/package.json index 9daa4e0f898..5248ca21b24 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "strip-ansi": "^3.0.0", "stylelint": "^7.5.0", "symlink-or-copy": "^1.0.1", - "travis-after-modes": "0.0.5", + "travis-after-modes": "0.0.6-2", "ts-node": "^0.7.3", "tslint": "^3.13.0", "typedoc": "^0.5.1", diff --git a/scripts/ci/after-success.sh b/scripts/ci/after-success.sh index b957973721a..37524389d1e 100755 --- a/scripts/ci/after-success.sh +++ b/scripts/ci/after-success.sh @@ -6,10 +6,8 @@ # Go to the project root directory cd $(dirname $0)/../.. -npmBin=$(npm bin) -ciResult=$($npmBin/travis-after-modes) - -if [ "$ciResult" = "PASSED" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then +# If not running as a PR, wait for all other travis modes to finish. +if [ "$TRAVIS_PULL_REQUEST" = "false" ] && $(npm bin)/travis-after-modes; then echo "All travis modes passed. Publishing the build artifacts..." ./scripts/release/publish-build-artifacts.sh fi \ No newline at end of file