Added release instruction
This commit is contained in:
parent
56ed7eb561
commit
9b1656fe1f
1 changed files with 41 additions and 0 deletions
41
doc/Releasing.md
Normal file
41
doc/Releasing.md
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
# Release process
|
||||||
|
|
||||||
|
## ... for testing (snapshots)
|
||||||
|
|
||||||
|
Make sure your clojars.org credentials are correctly set in your ~/.lein/profiles.clj file.
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
git add .
|
||||||
|
git commit
|
||||||
|
```
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
lein deploy # or lein deploy clojars
|
||||||
|
```
|
||||||
|
|
||||||
|
## ... for stable release
|
||||||
|
|
||||||
|
Make sure tags are protected in gitlab:
|
||||||
|
Repository Settings -> Protected Tags -> set \*.\*.\* as tag and save.
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
git checkout main # for old projects replace main with master
|
||||||
|
git add .
|
||||||
|
git commit
|
||||||
|
```
|
||||||
|
|
||||||
|
Execute tests
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
shadow-cljs compile test
|
||||||
|
node target/node-tests.js
|
||||||
|
lein test
|
||||||
|
```
|
||||||
|
|
||||||
|
Release with type (NONE, PATCH, MINOR, MAJOR):
|
||||||
|
``` bash
|
||||||
|
RELEASE_TYPE=[TYPE] pyb prepare_release after_publish
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Done.
|
Loading…
Reference in a new issue