Skip to content

Commit

Permalink
ci: add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
tillywoodfield committed May 15, 2024
1 parent bede998 commit 26c19c6
Show file tree
Hide file tree
Showing 3 changed files with 960 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: CI
on: [push]
on: [push, pull_request]

jobs:
build:
Expand All @@ -17,3 +17,6 @@ jobs:
run: npm run build
- name: Build storybook
run: npm run build:storybook
- name: Lint commit messages
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
Loading

0 comments on commit 26c19c6

Please sign in to comment.