1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-12 08:54:00 +02:00
joplin/CliClient/publish.sh

21 lines
494 B
Bash
Raw Normal View History

2017-07-28 00:59:34 +02:00
#!/bin/bash
2020-01-25 01:17:46 +02:00
echo "Deprecated! Use `node Tools/release-cli.js`"
exit 1
2017-07-28 00:59:34 +02:00
set -e
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR"
2017-07-28 00:59:34 +02:00
npm version patch
2017-08-05 00:15:08 +02:00
touch "$SCRIPT_DIR/app/main.js"
2017-07-28 00:59:34 +02:00
bash $SCRIPT_DIR/build.sh
cp "$SCRIPT_DIR/package.json" build/
2017-07-31 21:47:58 +02:00
cp "$SCRIPT_DIR/../README.md" build/
2017-07-28 00:59:34 +02:00
cd "$SCRIPT_DIR/build"
npm publish
2018-01-26 19:19:42 +02:00
NEW_VERSION=$(cat package.json | jq -r .version)
git add -A
git commit -m "CLI v$NEW_VERSION"
git tag "cli-v$NEW_VERSION"
git push && git push --tags