Skip to content

Commit d0821e8

Browse files
committed
ci: Install commitlint locally, not globally
Global installations don't work since the release of version v19.0.0: conventional-changelog/commitlint#3936
1 parent 6af1ddb commit d0821e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/commits.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
fetch-depth: 0
1717
- name: Install commitlint
18-
run: npm install -g @commitlint/cli @commitlint/config-conventional
18+
run: npm install @commitlint/cli @commitlint/config-conventional
1919
- name: Validate commit messages
2020
id: conventional-commits
2121
env:
@@ -25,7 +25,7 @@ jobs:
2525
delim="_EOF_$(uuidgen)"
2626
echo "validation-result<<$delim" >> "$GITHUB_OUTPUT"
2727
r=0
28-
commitlint --from "$SHA_FROM" --to "$SHA_TO" >> "$GITHUB_OUTPUT" 2>&1 || r=$?
28+
npx commitlint --from "$SHA_FROM" --to "$SHA_TO" >> "$GITHUB_OUTPUT" 2>&1 || r=$?
2929
echo "$delim" >> "$GITHUB_OUTPUT"
3030
exit $r
3131
- name: Post comment if validation failed

0 commit comments

Comments
 (0)