diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0fd5fad..ff83d868 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,5 +28,7 @@ jobs: - name: 'Install dependencies' run: 'npm install' + - uses: wagoid/commitlint-github-action@v5 + - name: 'Run tests' run: 'npm test' diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 00000000..4fedde6d --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1 @@ +module.exports = { extends: ['@commitlint/config-conventional'] } diff --git a/package.json b/package.json index 3081c2d4..428460a7 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,8 @@ "node": ">=12.0.0" }, "devDependencies": { + "@commitlint/cli": "^17.6.7", + "@commitlint/config-conventional": "^17.6.7", "@types/eslint": "^8.4.1", "@types/tape": "^4.13.2", "eslint": "^8.13.0",