Skip to content

Commit a44da4f

Browse files
committed
ci: add commitlint and husky
1 parent 28feb55 commit a44da4f

File tree

7 files changed

+4925
-1766
lines changed

7 files changed

+4925
-1766
lines changed

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-node@v2
1313
with:
14-
node-version: 16
14+
node-version: 18
1515
- run: npm install
1616
- run: npm run build

Diff for: .github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Setup Node
1212
uses: actions/setup-node@v2
1313
with:
14-
node-version: '16.x'
14+
node-version: '18.x'
1515
registry-url: 'https://registry.npmjs.org'
1616
- name: Install dependencies and build 🔧
1717
run: npm ci && npm run build

Diff for: .husky/commit-msg

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit ${1}
5+
npm run commitlint ${1}

Diff for: commitlint.config.js

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

0 commit comments

Comments
 (0)