1 |
|
2 |
|
3 | HERE=$(cd "$(dirname $0)" && pwd)
|
4 | BASE_DIR=$(cd "${HERE}/.." && pwd)
|
5 |
|
6 | cd ${BASE_DIR}
|
7 |
|
8 | echo "Sure to release new version (y/N)? "
|
9 | read -p ">> " answer
|
10 |
|
11 | case ${answer:0:1} in
|
12 | y|Y )
|
13 | npm run versionup
|
14 | npm run taggit
|
15 | npm publish .
|
16 | git add . -A
|
17 | git commit -m 'Version up '
|
18 | git push
|
19 | ;;
|
20 | * )
|
21 | echo aborted.
|
22 | ;;
|
23 | esac |
\ | No newline at end of file |