GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — angular.js/scripts/angular.js/tag-release.sh at master · caioariede/angular.js Expand file tree/ Copy pathtag-release.shMore file actions executable file ·42 lines (34 loc) · 971 Bytes / Copy pathtag-release.shFile metadata and controlsexecutable file ·42 lines (34 loc) · 971 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 #!/bin/bash # Tags a release # so that travis can do the actual release. echo "#################################" echo "## Tag angular.js for a release #" echo "#################################" ARG_DEFS=( "--action=(prepare|publish)" "--commit-sha=(.*)" # the version number of the release. # e.g. 1.2.12 or 1.2.12-rc.1 "--version-number=([0-9]+\.[0-9]+\.[0-9]+(-[a-z]+\.[0-9]+)?)" "--version-name=(.+)" ) function checkVersionNumber() { BRANCH_PATTERN=$(readJsonProp "package.json" "branchPattern") if [[ $VERSION_NUMBER != $BRANCH_PATTERN ]]; then echo "version-number needs to match $BRANCH_PATTERN on this branch" usage fi } function init { cd ../.. checkVersionNumber TAG_NAME="v$VERSION_NUMBER" } function prepare() { git tag "$TAG_NAME" -m "chore(release): $TAG_NAME codename($VERSION_NAME)" "$COMMIT_SHA" } function publish() { # push the tag to github git push origin $TAG_NAME } source $(dirname $0)/../utils.inc |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |