2020-06-26 11:26:18 +00:00
|
|
|
# Releasing
|
|
|
|
|
|
|
|
## dev release
|
|
|
|
```
|
2020-06-26 13:59:21 +00:00
|
|
|
shadow-cljs compile test
|
|
|
|
|
2020-06-26 11:26:18 +00:00
|
|
|
shadow-cljs release app
|
2020-06-29 16:47:22 +00:00
|
|
|
chmod a+x mastodon-bot.js
|
2020-06-26 16:01:26 +00:00
|
|
|
rm -rf target/npm-build
|
2020-06-26 11:26:18 +00:00
|
|
|
mkdir target/npm-build
|
|
|
|
cp mastodon-bot.js target/npm-build/
|
2020-06-26 16:01:26 +00:00
|
|
|
cp package.json target/npm-build/
|
2020-06-26 11:26:18 +00:00
|
|
|
cp README.md target/npm-build/
|
2020-06-27 12:42:42 +00:00
|
|
|
tar -cz -C target/npm-build -f target/npm-build.tgz .
|
2020-06-26 13:59:21 +00:00
|
|
|
|
2020-06-29 16:47:22 +00:00
|
|
|
npm publish ./target/npm-build.tgz --access public
|
2020-06-26 11:26:18 +00:00
|
|
|
```
|
|
|
|
|
2020-06-26 11:35:34 +00:00
|
|
|
## prod release (should be done from master)
|
2020-06-26 11:26:18 +00:00
|
|
|
```
|
2020-06-26 13:59:21 +00:00
|
|
|
shadow-cljs compile test
|
2020-06-26 11:26:18 +00:00
|
|
|
|
|
|
|
#adjust version
|
|
|
|
vi shadow-cljs.edn
|
|
|
|
|
|
|
|
git commit -am "releasing"
|
|
|
|
git tag [version]
|
|
|
|
git push && git push --tag
|
|
|
|
|
|
|
|
shadow-cljs release app
|
2020-06-26 16:01:26 +00:00
|
|
|
|
|
|
|
shadow-cljs release app
|
2020-06-29 16:47:22 +00:00
|
|
|
chmod a+x mastodon-bot.js
|
2020-06-26 16:01:26 +00:00
|
|
|
rm -rf target/npm-build
|
2020-06-26 11:26:18 +00:00
|
|
|
mkdir target/npm-build
|
|
|
|
cp mastodon-bot.js target/npm-build/
|
2020-06-26 16:01:26 +00:00
|
|
|
cp package.json target/npm-build/
|
2020-06-26 11:26:18 +00:00
|
|
|
cp README.md target/npm-build/
|
2020-06-27 12:42:42 +00:00
|
|
|
tar -cz -C target/npm-build -f target/npm-build.tgz .
|
2020-06-26 16:01:26 +00:00
|
|
|
|
2020-06-29 16:47:22 +00:00
|
|
|
npm publish ./target/npm-build.tgz --access public
|
2020-06-26 11:26:18 +00:00
|
|
|
|
|
|
|
# Bump version
|
|
|
|
vi shadow-cljs.edn
|
|
|
|
|
|
|
|
git commit -am "version bump" && git push
|
|
|
|
```
|