Skip to content

Commit 08c315a

Browse files
author
Ehsan-MSI\Ehsan
committed
ci: add github action for commit linter
1 parent 1e2e50c commit 08c315a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ jobs:
3131
run: pnpm check-format
3232
- name: Run type checks
3333
run: pnpm typecheck
34+
- name: Run commit linter
35+
run: pnpm commit-lint

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
"format": "prettier --write .",
1616
"generate-types": "tsc --project ./src/tsconfig.json --noEmit false --emitDeclarationOnly true --outDir ./es",
1717
"check-format": "prettier --check .",
18+
"prepare": "husky install",
1819
"storybook": "storybook dev -p 6006",
1920
"build-storybook": "storybook build",
20-
"prepare": "husky install"
21+
"commit-lint": "pnpm commitlint --from=$(git rev-list \"origin/${GITHUB_BASE_REF}\"..HEAD | sed '1!d')~1"
2122
},
2223
"bugs": {
2324
"url": "https://github.com/momesana/react-confirmation-code-input/issues"

0 commit comments

Comments
 (0)