ci(travis): publish artifacts only from the upstream/master jobs

This commit is contained in:
Igor Minar 2016-03-04 18:00:16 -08:00 committed by Igor Minar
parent 773fe8f8c5
commit 37d18d0112
1 changed files with 3 additions and 1 deletions

View File

@ -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}"