mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
14 lines
292 B
Bash
14 lines
292 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
cd "$SCRIPT_DIR"
|
|
npm run buildAssets
|
|
npm version patch
|
|
npm publish
|
|
|
|
NEW_VERSION=$(cat package.json | jq -r .version)
|
|
git add -A
|
|
git commit -m "v$NEW_VERSION"
|
|
git tag "v$NEW_VERSION"
|
|
git push && git push --tags |