arichiardi / fonda

An async pipeline approach to functional core - imperative shell.
Apache License 2.0
22 stars 1 forks source link

Tweak Makefile to handle patch versions with reproducible revisions #27

Closed arichiardi closed 5 years ago

arichiardi commented 5 years ago

This idea is very simple: instead of bumping manually the patch number of a version - frequent and tedious - we calculate a reproducible revision number. It will be the number of commits since the earliest X.Y.0 tag. The above signals the starting of a new cycle. ClojureScript implements this strategy and it is really effective so we are going to try it in here as well since 0.2.0. The major and minor numbers are in the Makefile but will be propagated to all the necessary files (project.clj, package.json, pom.xml).

To check the next version:

make next-version

To prepare for release and deploy:

make prepare-release
make deploy
ElChache commented 5 years ago

What is there not to love of this change? It is how it should be done on every project!

arichiardi commented 5 years ago

Wow nice feedback, I wonder what @mattbishop thinks as well ;)