Skip to content

Commit 03dc2b4

Browse files
committed
Fix ci to check code format in ci
1 parent 1899b13 commit 03dc2b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ jobs:
4747
run: yarn run lint
4848

4949
- name: Run prettier
50-
run: yarn run prettier
50+
run: yarn run prettier:check

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"start": "next start",
1010
"lint": "next lint",
1111
"prettier": "npx prettier --config ./.prettierrc --write **/*.{ts,tsx}",
12+
"prettier:check": "npx prettier --config ./.prettierrc --check **/*.{ts,tsx}",
1213
"test": "jest",
1314
"test:watch": "jest --watch"
1415
},

0 commit comments

Comments
 (0)