2017-07-27 23:59:34 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2017-10-30 21:29:36 +00:00
|
|
|
cd "$SCRIPT_DIR"
|
2017-07-27 23:59:34 +01:00
|
|
|
npm version patch
|
2017-08-05 00:15:08 +02:00
|
|
|
touch "$SCRIPT_DIR/app/main.js"
|
2017-07-27 23:59:34 +01:00
|
|
|
bash $SCRIPT_DIR/build.sh
|
|
|
|
cp "$SCRIPT_DIR/package.json" build/
|
2017-07-31 19:47:58 +00:00
|
|
|
cp "$SCRIPT_DIR/../README.md" build/
|
2017-07-27 23:59:34 +01:00
|
|
|
cd "$SCRIPT_DIR/build"
|
2018-01-09 19:45:08 +00:00
|
|
|
npm publish
|
|
|
|
|
2018-01-26 17:19:42 +00:00
|
|
|
NEW_VERSION=$(cat package.json | jq -r .version)
|
2018-01-09 19:45:08 +00:00
|
|
|
git add -A
|
|
|
|
git commit -m "CLI v$NEW_VERSION"
|
|
|
|
git tag "cli-v$NEW_VERSION"
|
|
|
|
git push && git push --tags
|