File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ function init {
16
16
REPO_DIR=$TMP_DIR /angularjs.org
17
17
BRANCH_PATTERN=$( readJsonProp " $BASE_DIR /package.json" " branchVersion" )
18
18
BUILD_DIR=$BASE_DIR /build
19
- NEW_VERSION=$( cat $BUILD_DIR /version.txt)
20
19
}
21
20
22
21
function prepare {
@@ -40,12 +39,12 @@ function prepare {
40
39
41
40
# Replace the version of the branch that we are updating
42
41
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
+
46
45
git add index.html
47
46
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 "
49
48
}
50
49
51
50
function publish {
You can’t perform that action at this time.
0 commit comments