c4k-taiga/doc/Releasing.md

1.7 KiB

Release process

(Deprecated, please refer to the build.py instead.)

... for testing (snapshots)

Make sure your clojars.org credentials are correctly set in your ~/.lein/profiles.clj file.

git add .
git commit
lein deploy # or lein deploy clojars

... for stable release patch version

Make sure tags are protected in gitlab: Repository Settings -> Protected Tags -> set *.*.* as tag and save.

Make sure all your changes are committed:

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.

git add .
# REPLACE x.x.x with the correct version
git commit -m "Release vx.x.x"
lein release
git push --follow-tags

Open package.json again, increase version increment by one and add "-SNAPSHOT".

git commit -am "[Skip-CI] version bump"
git push

... for stable release minor version

Make sure tags are protected in gitlab: Repository Settings -> Protected Tags -> set *.*.* as tag and save.

git checkout main # for old projects replace main with master
git add .
git commit 

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.
Leave "-SNAPSHOT" be.

git add .
# REPLACE x.x.x with the correct version
git commit -m "Release vx.x.x"
lein release
git push --follow-tags

Open package.json again, increase version increment by one and add "-SNAPSHOT".

git commit -am "[Skip-CI] version bump"
git push

Done.