Skip to content

Commit d3bc116

Browse files
committed
build(commitlint): run from package.json
1 parent 1a0118b commit d3bc116

File tree

3 files changed

+491
-38
lines changed

3 files changed

+491
-38
lines changed

.github/workflows/pr-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
run_install: true
2121

2222
- name: Lint commits
23-
run: npx commitlint --from=${{ github.event.pull_request.base.sha }}
23+
run: pnpm test:commitlint --from=${{ github.event.pull_request.base.sha }}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"publish:python": "pnpm -r --sequential publish:python",
2121
"test:wasi": "pnpm -r test:wasi",
2222
"test:lint": "pnpm -r test:lint",
23+
"test:commitlint": "commitlint",
2324
"test:node": "pnpm -r test:node",
2425
"test:browser:chrome": "pnpm -r test:browser:chrome",
2526
"test:browser:firefox": "pnpm -r test:browser:firefox",
@@ -32,7 +33,8 @@
3233
},
3334
"devDependencies": {
3435
"@changesets/cli": "^2.27.1",
35-
"@commitlint/config-conventional": "^18.4.3"
36+
"@commitlint/cli": "^19.3.0",
37+
"@commitlint/config-conventional": "^19.2.2"
3638
},
3739
"pnpm": {
3840
"overrides": {

0 commit comments

Comments
 (0)