소스 검색
Merge pull request #14 from Deuchnord/commitlint
build: add commitlint configuration
tags/v0.2.3
Jérôme Deuchnord
5 년 전
committed by
GitHub
No known key found for this signature in database
GPG 키 ID: 4AEE18F83AFDEB23
2개의 변경된 파일과
22개의 추가작업 그리고
0개의 파일을 삭제
-
.github/workflows/commitlint.yml
-
commitlint.config.js
|
|
@@ -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 |
|
|
|
|
|
|
@@ -0,0 +1 @@ |
|
|
|
module.exports = {extends: ['@commitlint/config-conventional']} |