update release doc

This commit is contained in:
Clemens 2023-04-12 16:56:41 +02:00
parent 6b318e1b79
commit e3d4e4b2bf

View file

@ -18,17 +18,19 @@ lein deploy # or lein deploy clojars
Make sure tags are protected in gitlab:
Repository Settings -> Protected Tags -> set \*.\*.\* as tag and save.
Make sure all your changes are committed:
``` 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.
Open package.json, find "version" keyword and remove "-SNAPSHOT" from version number.
``` bash
git add .
git commit -m "Release [version]"
# REPLACE x.x.x with the correct version
git commit -m "Release vx.x.x"
lein release
git push --follow-tags
```
@ -36,7 +38,7 @@ git push --follow-tags
Open package.json again, increase version increment by one and add "-SNAPSHOT".
``` bash
git commit -am "version bump"
git commit -am "[Skip-CI] version bump"
git push
```
@ -51,7 +53,7 @@ git add .
git commit
```
In package.json, find ":version" keyword and remove "-SNAPSHOT" from version number.
In package.json, find "version" keyword and remove "-SNAPSHOT" from version number.
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.
@ -59,7 +61,8 @@ Leave "-SNAPSHOT" be.
``` bash
git add .
git commit -m "Release [version]"
# REPLACE x.x.x with the correct version
git commit -m "Release vx.x.x"
lein release
git push --follow-tags
```