This repository has been archived on 2023-07-28. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon-bot/RELEASING.md

46 lines
939 B
Markdown
Raw Normal View History

2020-06-26 11:26:18 +00:00
# Releasing
## dev release
```
shadow-cljs compile test
2020-06-26 11:26:18 +00:00
shadow-cljs release app
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/
tar -c -C target/npm-build -f target/npm-build.tar .
2020-06-26 11:26:18 +00:00
npm publish ./target/npm-build.tar --access public --tag dev0
```
2020-06-26 11:35:34 +00:00
## prod release (should be done from master)
2020-06-26 11:26:18 +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
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/
tar -c -C target/npm-build -f target/npm-build.tar .
2020-06-26 16:01:26 +00:00
2020-06-26 11:26:18 +00:00
npm publish ./target/npm-build.tar --access public --tag [version]
# Bump version
vi shadow-cljs.edn
git commit -am "version bump" && git push
```