c4k-forgejo/doc/Releasing.md

42 lines
679 B
Markdown
Raw Normal View History

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