2022-10-21 13:38:07 +00:00
|
|
|
# Release process
|
2022-06-07 15:37:21 +00:00
|
|
|
|
2022-10-21 13:38:07 +00:00
|
|
|
## ... 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
|
2022-06-07 15:37:21 +00:00
|
|
|
```
|
|
|
|
|
2022-10-21 13:38:07 +00:00
|
|
|
## ... 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
|
|
|
|
```
|
|
|
|
|
2023-06-23 08:47:06 +00:00
|
|
|
Execute tests
|
2022-10-21 13:38:07 +00:00
|
|
|
|
|
|
|
``` bash
|
2023-06-23 08:47:06 +00:00
|
|
|
shadow-cljs compile test
|
|
|
|
node target/node-tests.js
|
|
|
|
lein test
|
2022-10-21 13:38:07 +00:00
|
|
|
```
|
2022-06-07 15:37:21 +00:00
|
|
|
|
2023-06-23 08:47:06 +00:00
|
|
|
Release with type (NONE, PATCH, MINOR, MAJOR):
|
2022-10-21 13:38:07 +00:00
|
|
|
``` bash
|
2023-06-23 08:47:06 +00:00
|
|
|
RELEASE_TYPE=[TYPE] pyb prepare_release after_publish
|
|
|
|
|
2022-10-21 13:38:07 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Done.
|