Add commit-release and npm scripts

This commit is contained in:
Julia Friesel
2019-05-01 07:38:17 +02:00
parent 7387db4a69
commit 53ec882e53
3 changed files with 311 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/
set -eEu -o pipefail
shopt -s extdebug
IFS=$'\n\t'
trap 'onFailure $?' ERR
function onFailure() {
echo "Unhandled script error $1 at ${BASH_SOURCE[0]}:${BASH_LINENO[0]}" >&2
exit 1
}
git add -A
git commit -m "release: $(cat package.json | $(npm bin)/jase version)"
git tag v$(cat package.json | $(npm bin)/jase version)