Skip to content

Commit 9ae38f2

Browse files
committed
fixup! ci: add commitlint to lint step of CI
1 parent e8ac50b commit 9ae38f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
- name: Install npm dependencies
3434
run: npm clean-install
3535

36-
- name: Validate current commit (last commit) with commitlint
36+
- name: Validate pushed commits with commitlint
3737
if: github.event_name == 'push'
38-
run: npx commitlint --last --verbose
38+
run: npx commitlint --from ${{ github.event.before }} --to ${{ github.sha }} --verbose
3939

4040
- name: Validate PR commits with commitlint
4141
if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)