add releasing

This commit is contained in:
jem 2020-06-26 13:26:18 +02:00
parent 4ac0ac1c20
commit 081e3dfc78
3 changed files with 38 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
config.edn
config*.edn
package-lock.json
/.shadow-cljs
/node_modules

View file

@ -1,6 +1,7 @@
# can be used for travis build config et al config
#shadow-cljs do-something test
shadow-cljs release app
mkdir target/npm-build
cp mastodon-bot.js target/npm-build/

36
RELEASING.md Normal file
View file

@ -0,0 +1,36 @@
# Releasing
## dev release
```
shadow-cljs watch test
shadow-cljs release app
mkdir target/npm-build
cp mastodon-bot.js target/npm-build/
cp README.md target/npm-build/
tar -c -C target/npm-build -f target/npm-build.tar .
npm publish ./target/npm-build.tar --access public --tag dev0
```
## prod release
```
shadow-cljs watch test
#adjust version
vi shadow-cljs.edn
git commit -am "releasing"
git tag [version]
git push && git push --tag
shadow-cljs release app
mkdir target/npm-build
cp mastodon-bot.js target/npm-build/
cp README.md target/npm-build/
tar -c -C target/npm-build -f target/npm-build.tar .
npm publish ./target/npm-build.tar --access public --tag [version]
# Bump version
vi shadow-cljs.edn
git commit -am "version bump" && git push
```