Skip to content

Commit

Permalink
build(commitlint): run from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed May 8, 2024
1 parent 3b5331e commit a959007
Show file tree
Hide file tree
Showing 3 changed files with 491 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
run_install: true

- name: Lint commits
run: npx commitlint --from=${{ github.event.pull_request.base.sha }}
run: pnpm test:commitlint --from=${{ github.event.pull_request.base.sha }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"publish:python": "pnpm -r --sequential publish:python",
"test:wasi": "pnpm -r test:wasi",
"test:lint": "pnpm -r test:lint",
"test:commitlint": "commitlint",
"test:node": "pnpm -r test:node",
"test:browser:chrome": "pnpm -r test:browser:chrome",
"test:browser:firefox": "pnpm -r test:browser:firefox",
Expand All @@ -32,7 +33,8 @@
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@commitlint/config-conventional": "^18.4.3"
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2"
},
"pnpm": {
"overrides": {
Expand Down
Loading

0 comments on commit a959007

Please sign in to comment.