Skip to content

Commit

Permalink
ci: lint commits
Browse files Browse the repository at this point in the history
  • Loading branch information
robby rabbitman committed Jun 29, 2024
1 parent 576e3c7 commit 82f1fdd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@ jobs:
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'

- uses: nrwl/nx-set-shas@v4

- run: pnpm i

- uses: nrwl/nx-set-shas@v4
- if: github.event_name == 'push'
run: pnpm exec nx run tools-commitlint:exec:last

- if: github.event_name == 'pull_request'
run: nx run tools-commitlint:exec:last --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }}

- run: pnpm exec nx affected -t lint test build

0 comments on commit 82f1fdd

Please sign in to comment.