Skip to content

Commit ea6756d

Browse files
ci: fix lint commits (#1749)
1 parent 573c859 commit ea6756d

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
@@ -56,8 +56,9 @@ jobs:
5656
- name: Security audit
5757
run: npm run security
5858

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

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

0 commit comments

Comments
 (0)