Skip to content

Commit

Permalink
chore(repo): Speed up PR title linter (#3504)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilewski authored Jun 3, 2024
1 parent 3a22127 commit 5b4902b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/pr-title-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down

0 comments on commit 5b4902b

Please sign in to comment.