diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index 983d3a7..42305a3 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -16,6 +16,11 @@ jobs: with: node-version: lts/* - - run: npm install -D @commitlint/cli @commitlint/config-conventional + - run: npm install -g @commitlint/config-conventional - - run: npx commitlint --from ${{ gitea.event.pull_request.base.sha }} --to ${{ gitea.event.pull_request.head.sha }} --verbose + - run: >- + npx commitlint + -g .github/workflows/commitlint.config.js + --from ${{ gitea.event.pull_request.base.sha }} + --to ${{ gitea.event.pull_request.head.sha }} + --verbose