You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
c4k-website/doc/Releasing.md

44 lines
790 B
Markdown

2 years ago
# 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
2 years ago
2 years ago
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
2 years ago
git add .
git commit
2 years ago
```
Open package.json, find ":version" keyword and remove "-SNAPSHOT" from version number.
``` bash
git add .
git commit -m "Release [version]"
2 years ago
lein release
git push --follow-tags
```
Open package.json again, increase version increment by one and add "-SNAPSHOT".
2 years ago
``` bash
2 years ago
git commit -am "version bump"
git push
```
2 years ago
Done.