Skip to content

Commit 15e8832

Browse files
Update guide-release-process-0.75.md
Fix command to get the base version, currently broken if a patch for a previous version was released in between release candidates (e.g. in case of release sequence 0.78-rc0, 0.77.1, 0.78-rc1 then 0.77.1 would be incorrectly picked as base version for 0.78-rc2 instead of 0.78-rc1).
1 parent 9f9aca5 commit 15e8832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide-release-process-0.75.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ git switch main
226226
git fetch --all --tags
227227
git pull
228228

229-
BASE_VERSION=$(git tag --sort=-creatordate | grep -E '^v0\.' | head -n2 | tail -n1)
229+
BASE_VERSION=$(git tag -l --sort=-v:refname | grep -E '^v0\.' | head -n2 | tail -n1)
230230

231231
# Generate the changelog
232232
npx @rnx-kit/rn-changelog-generator \

0 commit comments

Comments
 (0)