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

= Search Bar

This search bar is a simple way to integrate all the power of the Claude Bernard search engine into your website. It is a simple interface that sends request to the search engine. The search engine will then return the search results and displays them in the component interface.

== 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`)