Browse Source

build: add commitlint configuration

tags/v0.2.3
Jérôme Deuchnord 4 years ago
parent
commit
6ea3e04ba0
No known key found for this signature in database GPG Key ID: 6D1B91F131F89577
2 changed files with 22 additions and 0 deletions
  1. +21
    -0
      .github/workflows/commitlint.yml
  2. +1
    -0
      commitlint.config.js

+ 21
- 0
.github/workflows/commitlint.yml View File

@@ -0,0 +1,21 @@
name: Commit lint

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 13.x
- name: setup
run: |
npm install -g @commitlint/cli @commitlint/config-conventional
- name: commitlint
run: |
git log --format=%B -n 1 $GITHUB_SHA | commitlint


+ 1
- 0
commitlint.config.js View File

@@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}

Loading…
Cancel
Save