Skip to content

Commit 15f31f2

Browse files
ci: fix (#5071)
1 parent d0e3cc9 commit 15f31f2

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
@@ -59,8 +59,9 @@ jobs:
5959
- name: Security audit
6060
run: npm audit --production
6161

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

6566
test:
6667
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }} (${{ matrix.shard }})

0 commit comments

Comments
 (0)