Skip to content

Commit 3adbe4c

Browse files
authored
chore: fix commitlint check (#245)
1 parent b6c1d91 commit 3adbe4c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/nodejs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ jobs:
5050
- name: Security audit
5151
run: npm run security
5252

53-
- name: Check commit message
54-
uses: wagoid/commitlint-github-action@v5
53+
- name: Validate PR commits with commitlint
54+
if: github.event_name == 'pull_request'
55+
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
5556

5657
test:
5758
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}

0 commit comments

Comments
 (0)