1 |
|
2 | VER=${1}
|
3 | shift
|
4 | DESC=$@
|
5 |
|
6 | if [ -z "$DESC" ] ; then
|
7 | echo ":: ERROR! Please provide a brief description of the new version"
|
8 | exit 1
|
9 | fi
|
10 | echo :: Tagging and releasing ${VER} ::
|
11 | echo ${VER} - $@
|
12 |
|
13 | sed -i "" -E "s/\"version\":.+/\"version\": \"${VER}\",/" package.json
|
14 | git add package.json
|
15 | git commit -m "${VER}"
|
16 | git tag ${VER} -am "${VER} - ${DESC}"
|