chore(publish): use pub/npm_prepare.sh script to prep published builds
Closes #5356
This commit is contained in:
parent
c53a63acca
commit
3eced6e1a9
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e -x
|
set -e -x
|
||||||
|
|
||||||
DART_BUILD_ARTIFACTS_DIR="dist/dart/angular2"
|
DART_BUILD_ARTIFACTS_DIR="dist/pub/angular2"
|
||||||
JS_BUILD_ARTIFACTS_DIR="dist/js/prod/es5/angular2"
|
JS_BUILD_ARTIFACTS_DIR="dist/npm/angular2"
|
||||||
|
|
||||||
DART_BUILD_BRANCH="builds-dart"
|
DART_BUILD_BRANCH="builds-dart"
|
||||||
JS_BUILD_BRANCH="builds-js"
|
JS_BUILD_BRANCH="builds-js"
|
||||||
|
@ -60,7 +60,10 @@ function publishRepo {
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ "$TRAVIS_REPO_SLUG" = "angular/angular" && "$MODE" == "build_only" ]]; then
|
if [[ "$TRAVIS_REPO_SLUG" = "angular/angular" && "$MODE" == "build_only" ]]; then
|
||||||
|
scripts/publish/npm_prepare.sh angular2
|
||||||
publishRepo "js" "${JS_BUILD_ARTIFACTS_DIR}"
|
publishRepo "js" "${JS_BUILD_ARTIFACTS_DIR}"
|
||||||
|
|
||||||
|
scripts/publish/pub_prepare.sh angular2
|
||||||
publishRepo "dart" "${DART_BUILD_ARTIFACTS_DIR}"
|
publishRepo "dart" "${DART_BUILD_ARTIFACTS_DIR}"
|
||||||
echo "Finished publishing build artifacts"
|
echo "Finished publishing build artifacts"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue