medic / cht-core

The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
438 stars 209 forks source link

Set package version automatically during CI #9136

Open garethbowen opened 4 months ago

garethbowen commented 4 months ago

Describe the issue

There is a release step to update the version in package.json and commit. This is bad because...

Describe the improvement you'd like

During CI, before publishing the image, set the version automatically. This could either be based on the tag (cht-core example), or we could look at using semantic release to set the version based on the commit history (cht-conf example).

Ultimately we want to move towards semantic release to automate much of this process, but it might be too soon to commit to that yet.

Describe alternatives you've considered

Improve linting/testing to pick this up sooner and clarify docs to make this easier to follow. Automation is better!

fardarter commented 4 months ago

I've implemented semantic release before if you're interested in looking at it.