Fix release scripts
This commit is contained in:
+3
-1
@@ -3,6 +3,8 @@
|
|||||||
# Usage: ./bin/prepare-release x.y.z
|
# Usage: ./bin/prepare-release x.y.z
|
||||||
# x.y.z should be semver (e.g. 1.0.0)
|
# x.y.z should be semver (e.g. 1.0.0)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
NEW_VERSION=$1
|
NEW_VERSION=$1
|
||||||
CURRENT_PACKAGE_JSON_VERSION=$(cat package.json \
|
CURRENT_PACKAGE_JSON_VERSION=$(cat package.json \
|
||||||
| grep version \
|
| grep version \
|
||||||
@@ -19,7 +21,7 @@ CURRENT_BOWER_JSON_VERSION=$(cat bower.json \
|
|||||||
|
|
||||||
# Build xterm.js into `dist`
|
# Build xterm.js into `dist`
|
||||||
export BUILD_DIR=dist
|
export BUILD_DIR=dist
|
||||||
sh bin/build
|
./bin/build
|
||||||
|
|
||||||
# Update AUTHORS file
|
# Update AUTHORS file
|
||||||
sh bin/generate-authors
|
sh bin/generate-authors
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
# Usage: ./bin/release x.y.z
|
# Usage: ./bin/release x.y.z
|
||||||
# x.y.z should be semver (e.g. 1.0.0)
|
# x.y.z should be semver (e.g. 1.0.0)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ -z "$1" ];
|
if [ -z "$1" ];
|
||||||
then
|
then
|
||||||
echo "No version supplied. Please a version argument\n"
|
echo "No version supplied. Please a version argument\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user