1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +02:00
joplin/packages/renderer/publish.sh
2024-01-26 20:19:28 +00:00

14 lines
289 B
Bash

#!/bin/bash
set -e
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR"
yarn 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