1
0
mirror of https://github.com/msberends/AMR.git synced 2026-03-30 17:35:58 +02:00

docs: instruct Claude to install git and gh before computing version

This commit is contained in:
Matthijs Berends
2026-03-29 16:53:37 +02:00
parent 6a7e8ce036
commit ec11b4ebc1

View File

@@ -152,7 +152,16 @@ All PRs are **squash-merged**, so each PR lands as exactly **one commit** on the
#### Computing the correct version number
Run the following from the repo root to determine the version string to use:
**First, ensure `git` and `gh` are installed** — both are required for the version computation and for pushing changes. Install them if missing before doing anything else:
```bash
which git || apt-get install -y git
which gh || apt-get install -y gh
# Also ensure all tags are fetched so git describe works
git fetch --tags
```
Then run the following from the repo root to determine the version string to use:
```bash
currenttag=$(git describe --tags --abbrev=0 | sed 's/v//')