Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 86ab885

Browse files
committed
chore(release): fix angularjs.org cdn script
1 parent de07dde commit 86ab885

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/angularjs.org/publish.sh

+4-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ function init {
1616
REPO_DIR=$TMP_DIR/angularjs.org
1717
BRANCH_PATTERN=$(readJsonProp "$BASE_DIR/package.json" "branchVersion")
1818
BUILD_DIR=$BASE_DIR/build
19-
NEW_VERSION=$(cat $BUILD_DIR/version.txt)
2019
}
2120

2221
function prepare {
@@ -40,12 +39,12 @@ function prepare {
4039

4140
# Replace the version of the branch that we are updating
4241
echo $BRANCH_PATTERN
43-
echo $NEW_VERSION
44-
replaceInFile "js/download-data.js" "branch:[ ]+'($BRANCH_PATTERN)',[ ]+version:[ ]+'$VERSION_REGEX'" "branch: '\1', version: '$NEW_VERSION'"
45-
42+
echo $CDN_VERSION
43+
replaceInFile "js/download-data.js" "branch:[ ]+'($BRANCH_PATTERN)',[ ]+version:[ ]+'$VERSION_REGEX'" "branch: '\1', version: '$CDN_VERSION'"
44+
4645
git add index.html
4746
git add js/download-data.js
48-
git commit -m "update(version): update angular version to $NEW_VERSION for branch $BRANCH_PATTERN"
47+
git commit -m "update(version): update angular version to $CDN_VERSION for branch $BRANCH_PATTERN"
4948
}
5049

5150
function publish {

0 commit comments

Comments
 (0)