/
githubmirror
/
angular.js
Обзор
Документация
Войти
/
githubmirror
/
angular.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v1.8.0
scripts/release/undo-release.sh
41 строка
1 KB
George Kalpakas
chore(*): clean up `package.json` and CircleCI config
26 май 2020, 17:39
26 май 2020, 17:39
295213d
Код
Авторство
О чём код?
#!/bin/bash echo "#################################" echo "#### undo a release ############" echo "#################################" ARG_DEFS=( # require the git dryrun flag so the script can't be run without # thinking about this! "--git-push-dryrun=(true|false)" # 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]+)?)" ) function init { if [[ ! $VERBOSE ]]; then VERBOSE=false fi VERBOSE_ARG="--verbose=$VERBOSE" } function phase { ACTION_ARG="--action=$1" VERSION_NUMBER_ARG="--version-number=$VERSION_NUMBER" ../angular.js/untag-release.sh $ACTION_ARG $VERBOSE_ARG\ --version-number=$VERSION_NUMBER ../code.angularjs.org/unpublish.sh $ACTION_ARG $VERSION_NUMBER_ARG $VERBOSE_ARG ../bower/unpublish.sh $ACTION_ARG $VERSION_NUMBER_ARG $VERBOSE_ARG } function run { # First prepare all scripts (build, commit, tag, ...), # so we are sure everything is all right phase prepare # only then publish to github phase publish } source $(dirname $0)/../utils.inc