Skip to content

Commit 5b4902b

Browse files
authored
chore(repo): Speed up PR title linter (#3504)
1 parent 3a22127 commit 5b4902b

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/pr-title-linter.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ jobs:
1616
steps:
1717
- name: Checkout Repo
1818
uses: actions/checkout@v4
19-
20-
- name: Setup
21-
id: config
22-
uses: ./.github/actions/init
2319
with:
24-
turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
25-
turbo-team: ${{ vars.TURBO_TEAM }}
26-
turbo-token: ${{ secrets.TURBO_TOKEN }}
27-
playwright-enabled: true # Must be present to enable caching on branched workflows
20+
show-progress: false
21+
sparse-checkout: |
22+
commitlint.config.ts
23+
packages/*/package.json
24+
sparse-checkout-cone-mode: false
2825

2926
- name: Lint Pull Request Title
30-
run: echo "${{ github.event.pull_request.title }}" | npx commitlint
27+
run: |
28+
npm init --scope=clerk --yes
29+
npm i --save-dev @commitlint/config-conventional @commitlint/cli globby --audit=false --fund=false
30+
echo "${{ github.event.pull_request.title }}" | npm exec @commitlint/cli -- --config commitlint.config.ts

commitlint.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// All imports must be accounted for per `npm i` in .github/workflows/pr-title-linter.yml
12
import { globbySync } from 'globby';
23
import { readFileSync } from 'node:fs';
34

0 commit comments

Comments
 (0)