Skip to content

Commit a0ed6c7

Browse files
authored
ci: fix commitlint check (#129)
1 parent 2e556b3 commit a0ed6c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: .github/workflows/nodejs.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ jobs:
5454
- name: Security audit
5555
run: npm run security
5656

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

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

0 commit comments

Comments
 (0)