mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 23:40:23 +00:00
30 lines
610 B
Bash
Executable file
30 lines
610 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Script for updating cdnVersion of angular.js
|
|
|
|
echo "###################################"
|
|
echo "## Update angular.js cdnVersion ###"
|
|
echo "###################################"
|
|
|
|
ARG_DEFS=(
|
|
"--cdn-version=(.*)"
|
|
"--action=(prepare|publish)"
|
|
)
|
|
|
|
function init {
|
|
cd ../..
|
|
}
|
|
|
|
function prepare {
|
|
replaceJsonProp "package.json" "cdnVersion" "(.*)" "$CDN_VERSION"
|
|
git add package.json
|
|
git commit -m "chore(release): update cdn version"
|
|
}
|
|
|
|
function publish {
|
|
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
# push the commits to github
|
|
git push origin $BRANCH
|
|
}
|
|
|
|
source $(dirname $0)/../utils.inc
|