UNPKG

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