File tree 4 files changed +5754
-6353
lines changed
4 files changed +5754
-6353
lines changed Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- uses : actions/checkout@v3
12
+ - uses : pnpm/action-setup@v2
13
+ with :
14
+ version : 8
12
15
- name : Setup Node
13
16
uses : actions/setup-node@v3
14
17
with :
15
18
node-version : current
16
- cache : ' yarn '
17
- - run : yarn install --frozen-lockfile
18
- - run : yarn test
19
+ cache : ' pnpm '
20
+ - run : pnpm install --frozen-lockfile
21
+ - run : pnpm test
19
22
env :
20
23
CI : true
21
24
eslint :
22
25
runs-on : ubuntu-latest
23
26
steps :
24
27
- uses : actions/checkout@v3
28
+ - uses : pnpm/action-setup@v2
29
+ with :
30
+ version : 8
25
31
- name : Setup Node
26
32
uses : actions/setup-node@v3
27
33
with :
28
34
node-version : current
29
- cache : ' yarn '
30
- - run : yarn install --frozen-lockfile
31
- - run : yarn lint-fix
32
- - run : yarn prettier
35
+ cache : ' pnpm '
36
+ - run : pnpm install --frozen-lockfile
37
+ - run : pnpm lint-fix
38
+ - run : pnpm prettier
33
39
- name : Auto commit fixed code
34
40
id : auto-commit-action
35
41
uses : stefanzweifel/git-auto-commit-action@v4
Original file line number Diff line number Diff line change 15
15
" README.md"
16
16
],
17
17
"scripts" : {
18
+ "preinstall" : " npx only-allow pnpm" ,
18
19
"type-check" : " tsc --noEmit" ,
19
20
"type-check:yup" : " tsc --strict --noEmit example/yup/schemas.ts" ,
20
21
"type-check:zod" : " tsc --strict --noEmit example/zod/schemas.ts" ,
You can’t perform that action at this time.
0 commit comments