Skip to content

Commit 24e046f

Browse files
authored
ci(publish): fix multiples umd files (angular#11179)
1 parent 9796579 commit 24e046f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/publish/publish-build-artifacts.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ function publishRepo {
3131
BUILD_VER="2.0.0-${SHORT_SHA}"
3232
if [[ ${TRAVIS} ]]; then
3333
find $REPO_DIR/ -type f -name package.json -print0 | xargs -0 sed -i "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g"
34-
UMD=$(find $REPO_DIR/ -type f -name "*umd.js" -print0)
34+
UMD=$(find $REPO_DIR/ -type f -name "*umd.js" -print)
3535
if [[ ${UMD} ]]; then
36-
sed -i "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g" ${UMD}
36+
for UMD_FILE in ${UMD}; do
37+
sed -i "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g" ${UMD_FILE}
38+
done
3739
fi
3840
else
3941
find $REPO_DIR/ -type f -name package.json -print0 | xargs -0 sed -i '' "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g"

0 commit comments

Comments
 (0)