From e3d4e4b2bf1b00488e6293f9ae968f72194cb6bd Mon Sep 17 00:00:00 2001 From: Clemens Date: Wed, 12 Apr 2023 16:56:41 +0200 Subject: [PATCH] update release doc --- doc/Releasing.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/doc/Releasing.md b/doc/Releasing.md index d760116..bce2d2e 100644 --- a/doc/Releasing.md +++ b/doc/Releasing.md @@ -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 ```