From 716c3d5c1564b4021a1ca1cdae4b8c9c6aebef8f Mon Sep 17 00:00:00 2001 From: Jacek Radko Date: Fri, 15 Nov 2024 09:27:16 -0600 Subject: [PATCH] fix(repo): PR title linter sparse checkout (#4577) --- .github/workflows/pr-title-linter.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-title-linter.yml b/.github/workflows/pr-title-linter.yml index 13d294f3ec..e17461ff29 100644 --- a/.github/workflows/pr-title-linter.yml +++ b/.github/workflows/pr-title-linter.yml @@ -20,16 +20,13 @@ jobs: show-progress: false sparse-checkout: | commitlint.config.ts + package.json packages/*/package.json sparse-checkout-cone-mode: false - name: Install PNPM uses: pnpm/action-setup@v4 - with: - version: 9.13.0 - name: Lint Pull Request Title run: | - pnpm init - pnpm add -D @commitlint/config-conventional @commitlint/cli globby - echo '${{ github.event.pull_request.title }}' | pnpm dlx @commitlint/cli -- --config commitlint.config.ts + echo '${{ github.event.pull_request.title }}' | pnpm commitlint --config commitlint.config.ts