build(github): commitlint
ADD
.commitlintrc.js
+module.exports = {
+ extends: [
+ '@commitlint/config-conventional',
+ ],
+};

ADD
.github/workflows/commit-lint.yml
+name: Commitlint
+
+on: [pull_request]
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ - uses: wagoid/commitlint-github-action@v1
+ with:
+ configFile: .commitlintrc.js

MODIFY
package.json
package.json
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
- "commitlint": {
- "extends": [
- "@commitlint/config-conventional"
- ]
- },
"private": true,
"repository": {
"type": "git",

build(github): commitlint