ci: validate release PR commits independently (WealthLedger/main#30)
Conventional commits / commits (pull_request) Successful in 11s

This commit was merged in pull request #31.
This commit is contained in:
2026-10-12 23:39:30 +03:00
parent a659c9dcc7
commit 3027fd51ec
+4
View File
@@ -23,4 +23,8 @@ jobs:
HEAD_SHA: ${{ github.event.pull_request.head.sha }} HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: | run: |
printf '%s\n' "$PR_TITLE" | npm exec --no -- commitlint --strict printf '%s\n' "$PR_TITLE" | npm exec --no -- commitlint --strict
if [[ "$PR_TITLE" =~ ^chore\(release\):\ [0-9]+\.[0-9]+\.[0-9]+$ ]]; then
npm exec --no -- commitlint --strict --from "$HEAD_SHA^" --to "$HEAD_SHA"
else
npm exec --no -- commitlint --strict --from "$BASE_SHA" --to "$HEAD_SHA" npm exec --no -- commitlint --strict --from "$BASE_SHA" --to "$HEAD_SHA"
fi