add releasing
This commit is contained in:
parent
4ac0ac1c20
commit
081e3dfc78
3 changed files with 38 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
||||||
config.edn
|
config.edn
|
||||||
|
config*.edn
|
||||||
package-lock.json
|
package-lock.json
|
||||||
/.shadow-cljs
|
/.shadow-cljs
|
||||||
/node_modules
|
/node_modules
|
||||||
|
|
1
.travis
1
.travis
|
@ -1,6 +1,7 @@
|
||||||
# can be used for travis build config et al config
|
# can be used for travis build config et al config
|
||||||
|
|
||||||
#shadow-cljs do-something test
|
#shadow-cljs do-something test
|
||||||
|
|
||||||
shadow-cljs release app
|
shadow-cljs release app
|
||||||
mkdir target/npm-build
|
mkdir target/npm-build
|
||||||
cp mastodon-bot.js target/npm-build/
|
cp mastodon-bot.js target/npm-build/
|
||||||
|
|
36
RELEASING.md
Normal file
36
RELEASING.md
Normal 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
|
||||||
|
```
|
Reference in a new issue