From 1bed58031462721d4ba467642798a6067f4a8bdd Mon Sep 17 00:00:00 2001 From: Sachin Kumar Date: Wed, 28 Feb 2024 17:03:29 +0530 Subject: [PATCH] ci: fix commitlint check (#204) --- .github/workflows/nodejs.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 786bdec..6cbfaaf 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -54,8 +54,9 @@ jobs: - name: Security audit run: npm run security --production - - name: Check commit message - uses: wagoid/commitlint-github-action@v5 + - name: Validate PR commits with commitlint + if: github.event_name == 'pull_request' + run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose test: name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}