added release script
This commit is contained in:
parent
6bd61ccd2f
commit
2e33b53a0b
1 changed files with 12 additions and 0 deletions
12
release.sh
Executable file
12
release.sh
Executable file
|
@ -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
|
Reference in a new issue