From 37d18d0112af94c9016547c31cfd3fd407ee6390 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 4 Mar 2016 18:00:16 -0800 Subject: [PATCH] ci(travis): publish artifacts only from the upstream/master jobs --- scripts/publish/publish-build-artifacts.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/publish/publish-build-artifacts.sh b/scripts/publish/publish-build-artifacts.sh index e1b782c6b0..0fb66b7d21 100755 --- a/scripts/publish/publish-build-artifacts.sh +++ b/scripts/publish/publish-build-artifacts.sh @@ -59,7 +59,9 @@ function publishRepo { ) } -if [[ "$TRAVIS_REPO_SLUG" = "angular/angular" && "$MODE" == "build_only" ]]; then +if [[ "$TRAVIS_REPO_SLUG" == "angular/angular" && \ + "$TRAVIS_PULL_REQUEST" == "false" && \ + "$MODE" == "build_only" ]]; then scripts/publish/npm_prepare.sh angular2 publishRepo "js" "${JS_BUILD_ARTIFACTS_DIR}"