From 2e6d30a70d91f050ec5faa3db32b5d666841bc94 Mon Sep 17 00:00:00 2001 From: Rostislav Simonik Date: Sat, 29 Jul 2023 08:50:44 +0200 Subject: [PATCH] build: commitlint --- .github/workflows/ci.yml | 2 ++ commitlint.config.js | 1 + package.json | 3 +++ 3 files changed, 6 insertions(+) create mode 100644 commitlint.config.js 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..1c7ec83e --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1 @@ +module.exports = { extends: ['standard'] } diff --git a/package.json b/package.json index 3081c2d4..7f5195a0 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,11 @@ "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", + "commitlint-config-standard": "github:standard/commitlint-config-standard", "eslint": "^8.13.0", "eslint-plugin-import": "^2.25.4", "eslint-plugin-n": "^16.0.0",