From 5fcfdbc64861b56db2f980713cf0711e8c24616d Mon Sep 17 00:00:00 2001 From: Sachin Kumar Date: Wed, 28 Feb 2024 16:56:06 +0530 Subject: [PATCH] ci: fix commitlint check (#540) --- .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 7a476a3..204f9a7 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -51,8 +51,9 @@ jobs: - name: Security audit run: npm run security - - 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 }}