c4k-website/doc/Releasing.md

78 lines
1.7 KiB
Markdown
Raw Normal View History

2022-10-21 09:33:25 +00:00
# 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
```
2022-12-01 14:40:22 +00:00
## ... for stable release patch version
2022-09-08 13:04:17 +00:00
2022-10-21 13:36:31 +00:00
Make sure tags are protected in gitlab:
Repository Settings -> Protected Tags -> set \*.\*.\* as tag and save.
2023-04-12 14:56:41 +00:00
Make sure all your changes are committed:
``` bash
git checkout main # for old projects replace main with master
2022-10-21 10:15:13 +00:00
git add .
2023-04-12 14:44:36 +00:00
git commit
2022-09-08 13:04:17 +00:00
```
2023-04-12 14:56:41 +00:00
Open package.json, find "version" keyword and remove "-SNAPSHOT" from version number.
``` bash
2022-10-21 10:04:54 +00:00
git add .
2023-04-12 14:56:41 +00:00
# REPLACE x.x.x with the correct version
git commit -m "Release vx.x.x"
2022-09-08 13:04:17 +00:00
lein release
git push --follow-tags
```
Open package.json again, increase version increment by one and add "-SNAPSHOT".
2022-09-08 13:04:17 +00:00
``` bash
2023-04-12 14:56:41 +00:00
git commit -am "[Skip-CI] version bump"
2022-09-08 13:04:17 +00:00
git push
```
2022-12-01 14:40:22 +00:00
## ... for stable release minor version
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-04-12 14:56:41 +00:00
In package.json, find "version" keyword and remove "-SNAPSHOT" from version number.
2022-12-01 14:40:22 +00:00
Increment minor version by one, set patch version to zero.
Open project.clj, find ":version" keyword, increment minor version by one, set patch version to zero.
Leave "-SNAPSHOT" be.
``` bash
git add .
2023-04-12 14:56:41 +00:00
# REPLACE x.x.x with the correct version
git commit -m "Release vx.x.x"
2022-12-01 14:40:22 +00:00
lein release
git push --follow-tags
```
Open package.json again, increase version increment by one and add "-SNAPSHOT".
``` bash
2023-04-12 14:44:36 +00:00
git commit -am "[Skip-CI] version bump"
2022-12-01 14:40:22 +00:00
git push
```
2022-10-21 09:33:25 +00:00
Done.