From 2e33b53a0bcd32e507ad5100e50d44d0a57575d1 Mon Sep 17 00:00:00 2001 From: "dmitri.sotnikov@gmail.com" Date: Tue, 29 Dec 2020 17:10:44 -0500 Subject: [PATCH] added release script --- release.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 release.sh diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..abb5197 --- /dev/null +++ b/release.sh @@ -0,0 +1,12 @@ +#!/bin/bash +npx shadow-cljs release app +shasum -a 512 mastodon-bot.js > mastodon-bot.js.sha256 +shasum -a 512 mastodon-bot.js > mastodon-bot.js.sha512 +rm -rf target/npm-build/mastodon-bot +mkdir -p target/npm-build/mastodon-bot +cp mastodon-bot.js target/npm-build/mastodon-bot/ +cp target/mastodon-bot.js.sha256 target/npm-build/mastodon-bot/ +cp target/mastodon-bot.js.sha512 target/npm-build/mastodon-bot/ +cp package.json target/npm-build/mastodon-bot/ +cp README.md target/npm-build/mastodon-bot/ +npm publish ./target/npm-build/mastodon-bot --access public