diff options
Diffstat (limited to 'scripts/angular.js/publish-cdn-version.sh')
| -rwxr-xr-x | scripts/angular.js/publish-cdn-version.sh | 30 | 
1 files changed, 30 insertions, 0 deletions
| diff --git a/scripts/angular.js/publish-cdn-version.sh b/scripts/angular.js/publish-cdn-version.sh new file mode 100755 index 00000000..ed5ce43e --- /dev/null +++ b/scripts/angular.js/publish-cdn-version.sh @@ -0,0 +1,30 @@ +#!/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 | 
