c4k-forgejo/doc/Releasing.md

44 lines
789 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
```
Open package.json, find ":version" keyword and remove "-SNAPSHOT" from version number.
``` bash
git add .
git commit -m "Release [version]"
2022-06-07 15:37:21 +00:00
lein release
git push --follow-tags
```
2022-06-07 15:37:21 +00:00
Open package.json again, increase version increment by one and add "-SNAPSHOT".
``` bash
2022-06-07 15:37:21 +00:00
git commit -am "version bump"
git push
```
Done.