Skip to content

Commit

Permalink
ci: fix commitlint run command in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
seansica committed Oct 18, 2024
1 parent adccce7 commit 65db0cd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,5 @@ jobs:
node-version: '22.x'
- name: Install dependencies
run: npm ci
- name: Run commitlint
run: |
# Get the range of commits to check since the last push
COMMIT_RANGE=$(git rev-parse HEAD^1)..HEAD
npx commitlint --from=${COMMIT_RANGE}
- name: Validate all commits from push
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose

0 comments on commit 65db0cd

Please sign in to comment.