We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6af1ddb commit d0821e8Copy full SHA for d0821e8
.github/workflows/commits.yml
@@ -15,7 +15,7 @@ jobs:
15
with:
16
fetch-depth: 0
17
- name: Install commitlint
18
- run: npm install -g @commitlint/cli @commitlint/config-conventional
+ run: npm install @commitlint/cli @commitlint/config-conventional
19
- name: Validate commit messages
20
id: conventional-commits
21
env:
@@ -25,7 +25,7 @@ jobs:
25
delim="_EOF_$(uuidgen)"
26
echo "validation-result<<$delim" >> "$GITHUB_OUTPUT"
27
r=0
28
- commitlint --from "$SHA_FROM" --to "$SHA_TO" >> "$GITHUB_OUTPUT" 2>&1 || r=$?
+ npx commitlint --from "$SHA_FROM" --to "$SHA_TO" >> "$GITHUB_OUTPUT" 2>&1 || r=$?
29
echo "$delim" >> "$GITHUB_OUTPUT"
30
exit $r
31
- name: Post comment if validation failed
0 commit comments