File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Prettier
2
+
3
+ on :
4
+ pull_request :
5
+ types : [opened, synchronize, reopened]
6
+
7
+ permissions :
8
+ contents : read
9
+
10
+ concurrency :
11
+ group : ${{ github.workflow }}-${{ github.head_ref }}
12
+ cancel-in-progress : true
13
+
14
+ jobs :
15
+ prettier :
16
+ runs-on : ubuntu-latest
17
+
18
+ steps :
19
+ - name : Setup node
20
+ uses : actions/setup-node@v3
21
+ with :
22
+ node-version : latest
23
+
24
+ - name : Checkout
25
+ uses : actions/checkout@v4
26
+
27
+ - name : Install dependencies
28
+ run : |
29
+ yarn install --immutable --immutable-cache --check-cache
30
+
31
+ - name : Check
32
+ run : |
33
+ yarn run prettier:check
Original file line number Diff line number Diff line change 333
333
"scripts" : {
334
334
"compile" : " tsc -p ./" ,
335
335
"postinstall" : " husky install" ,
336
+ "prettier:check" : " prettier --check **.md **.ts **.yml **.json" ,
336
337
"vscode:prepublish" : " npm run compile" ,
337
338
"watch" : " tsc -watch -p ./"
338
339
},
You can’t perform that action at this time.
0 commit comments