Skip to content

Commit

Permalink
ci(commitlint): add commitlint and husky
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Swithenbank committed Aug 19, 2020
1 parent 89a57ff commit df86bb1
Show file tree
Hide file tree
Showing 4 changed files with 887 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ node_js:
- 12

stages:
- commitlint
- lint
- test
- name: release
if: branch =~ /^(\d+\.x|master)$/ AND type IN (push)

jobs:
include:
- stage: commitlint
script:
- commitlint-travis
- stage: lint
script:
- npm run lint
Expand Down
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']};
Loading

0 comments on commit df86bb1

Please sign in to comment.