diff --git a/.github/workflows/pr-title-linter.yml b/.github/workflows/pr-title-linter.yml index 1d5fc2a009a..1e3b50e4e8c 100644 --- a/.github/workflows/pr-title-linter.yml +++ b/.github/workflows/pr-title-linter.yml @@ -16,15 +16,15 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v4 - - - name: Setup - id: config - uses: ./.github/actions/init with: - turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} - turbo-team: ${{ vars.TURBO_TEAM }} - turbo-token: ${{ secrets.TURBO_TOKEN }} - playwright-enabled: true # Must be present to enable caching on branched workflows + show-progress: false + sparse-checkout: | + commitlint.config.ts + packages/*/package.json + sparse-checkout-cone-mode: false - name: Lint Pull Request Title - run: echo "${{ github.event.pull_request.title }}" | npx commitlint + run: | + npm init --scope=clerk --yes + npm i --save-dev @commitlint/config-conventional @commitlint/cli globby --audit=false --fund=false + echo "${{ github.event.pull_request.title }}" | npm exec @commitlint/cli -- --config commitlint.config.ts diff --git a/commitlint.config.ts b/commitlint.config.ts index 90d4be9536c..c187987d0ab 100644 --- a/commitlint.config.ts +++ b/commitlint.config.ts @@ -1,3 +1,4 @@ +// All imports must be accounted for per `npm i` in .github/workflows/pr-title-linter.yml import { globbySync } from 'globby'; import { readFileSync } from 'node:fs';