]> git.proxmox.com Git - mirror_xterm.js.git/blob - bin/release
Stricter check for option existence
[mirror_xterm.js.git] / bin / release
1 #! /usr/bin/env sh
2
3 # Usage: ./bin/release x.y.z
4 # x.y.z should be semver (e.g. 1.0.0)
5
6 if [ -z "$1" ];
7 then
8 echo "No version supplied. Please a version argument\n"
9 echo "Usage: $0 VERSION\n"
10 echo "Example: $0 1.0.0"
11 exit
12 fi
13
14 NEW_VERSION=$1
15
16 ./bin/prepare-release $NEW_VERSION
17
18 git push && \
19 git push --tags && \
20 npm publish