update release doc
This commit is contained in:
parent
6b318e1b79
commit
e3d4e4b2bf
1 changed files with 8 additions and 5 deletions
|
@ -18,17 +18,19 @@ lein deploy # or lein deploy clojars
|
||||||
Make sure tags are protected in gitlab:
|
Make sure tags are protected in gitlab:
|
||||||
Repository Settings -> Protected Tags -> set \*.\*.\* as tag and save.
|
Repository Settings -> Protected Tags -> set \*.\*.\* as tag and save.
|
||||||
|
|
||||||
|
Make sure all your changes are committed:
|
||||||
``` bash
|
``` bash
|
||||||
git checkout main # for old projects replace main with master
|
git checkout main # for old projects replace main with master
|
||||||
git add .
|
git add .
|
||||||
git commit
|
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
|
``` bash
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Release [version]"
|
# REPLACE x.x.x with the correct version
|
||||||
|
git commit -m "Release vx.x.x"
|
||||||
lein release
|
lein release
|
||||||
git push --follow-tags
|
git push --follow-tags
|
||||||
```
|
```
|
||||||
|
@ -36,7 +38,7 @@ git push --follow-tags
|
||||||
Open package.json again, increase version increment by one and add "-SNAPSHOT".
|
Open package.json again, increase version increment by one and add "-SNAPSHOT".
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
git commit -am "version bump"
|
git commit -am "[Skip-CI] version bump"
|
||||||
git push
|
git push
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -51,7 +53,7 @@ git add .
|
||||||
git commit
|
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.
|
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.
|
Open project.clj, find ":version" keyword, increment minor version by one, set patch version to zero.
|
||||||
|
@ -59,7 +61,8 @@ Leave "-SNAPSHOT" be.
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Release [version]"
|
# REPLACE x.x.x with the correct version
|
||||||
|
git commit -m "Release vx.x.x"
|
||||||
lein release
|
lein release
|
||||||
git push --follow-tags
|
git push --follow-tags
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue