:doctype: book

link:https://platform-dev.claudebernard.fr/storybook/shared-medication-review[image:https://raw.githubusercontent.com/storybooks/brand/master/badge/badge-storybook.svg[Storybook Badge]]

= Shared Medication Review

Shared Medication Review is a web component that allows healthcare professionals to collaboratively review and manage patient medication lists.

== Run locally

[source,sh]
----
npm install
npm run dev
----
== Releases

Release are made automatically through Gitlab CI pipelines.

=== directly from master

You can directly release a version from master, using the manual jobs `release-patch-version`, `release-minor-version`
and `release-major-version`.
Just run the job and the CI will do the rest.

=== release candidate

To **start a release candidate**, just create a release branch respecting gitflow syntax (i.e. `release/2.1.0`) and the `start-release-candidate` will create a release candidate 0 (i.e. `2.1.0-rc.0`)

To **fix a release candidate**, push your fixes on the release branch and then run the manual job `increment-release-candidate` and a release candidate x+1 will be created (i.e. `2.1.0-rc.2` to `2.1.0-rc.3`)

To **finish a release candidate** after it has been approved, run the manual job `finish-release-candidate` and the release candidate will be merged into master and a release will be created (i.e. `2.1.0`)