Skip to content

Commit f5be49c

Browse files
authored
ci: fix commitlint check (#1574)
1 parent 53b3096 commit f5be49c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/nodejs.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ jobs:
5151
- name: Security audit
5252
run: npm run security
5353

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

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

0 commit comments

Comments
 (0)