From 4e7dfe2bec75228b001d76a5e267691d1f58f815 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Thu, 5 May 2022 17:00:40 +0800 Subject: [PATCH] fix(ci): use local commitlint (#723) * fix(ci): use local commitlint * fix: update commitlint.yml --- .github/workflows/commitlint.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index e5ae495ad..02269a191 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -13,15 +13,10 @@ jobs: fetch-depth: 0 - name: Setup Node and pnpm - uses: logto-io/actions-node-pnpm-run-steps@v1.1.0 - with: - run-install: false - - - name: Install commitlint - run: pnpm add -g @commitlint/{cli,config-conventional} + uses: logto-io/actions-node-pnpm-run-steps@v1.2.1 - name: Commitlint - run: commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD + run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD - name: Commitlint on PR title - run: echo '${{ github.event.pull_request.title }}' | commitlint + run: echo '${{ github.event.pull_request.title }}' | npx commitlint