chore(release-scripts): split BranchPattern from BranchVersion

The release scripts need the BranchPattern to be of the form: 1.4.* so that
they can match the version using Regex.

The doc gen scripts need a SemVer pattern that will match beta releases.
The convention is that 1.4.x is not satisfied by 1.4.0.beta.0
This commit is contained in:
Peter Bacon Darwin
2015-01-14 20:36:17 +00:00
parent 54cae0f1d0
commit 299b3e7e01
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
{
"name": "angularjs",
"branchVersion": "1.4.*",
"branchVersion": "^1.4.0-beta.0",
"branchPattern": "1.4.*",
"repository": {
"type": "git",
"url": "https://github.com/angular/angular.js.git"
+1 -1
View File
@@ -17,7 +17,7 @@ ARG_DEFS=(
)
function checkVersionNumber() {
BRANCH_PATTERN=$(readJsonProp "package.json" "branchVersion")
BRANCH_PATTERN=$(readJsonProp "package.json" "branchPattern")
if [[ $VERSION_NUMBER != $BRANCH_PATTERN ]]; then
echo "version-number needs to match $BRANCH_PATTERN on this branch"
usage