File tree Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 4545
4646 - name : Lint
4747 run : pnpm lint
48+
49+ tsc :
50+ name : Check types
51+ runs-on : ubuntu-latest
52+ steps :
53+ - name : Checkout
54+ uses : actions/checkout@v3
55+
56+ - name : Setup Node
57+ uses : actions/setup-node@v3
58+ with :
59+ node-version : 18
60+
61+ - uses : pnpm/action-setup@v2
62+ name : Install pnpm
63+ with :
64+ version : 7
65+ run_install : false
66+
67+ - name : Get pnpm store directory
68+ id : pnpm-cache
69+ shell : bash
70+ run : |
71+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
72+
73+ - uses : actions/cache@v3
74+ name : Setup pnpm cache
75+ with :
76+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
77+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
78+ restore-keys : |
79+ ${{ runner.os }}-pnpm-store-
80+
81+ - name : Install dependencies
82+ run : pnpm install --frozen-lockfile
83+
84+ - name : Check types
85+ run : pnpm tsc
Original file line number Diff line number Diff line change 1717 "start" : " tsup src/index.ts --watch" ,
1818 "build" : " tsup" ,
1919 "lint" : " eslint src/ --ext ts" ,
20- "test" : " jest"
20+ "test" : " jest" ,
21+ "tsc" : " tsc --noEmit -p ."
2122 },
2223 "peerDependencies" : {
2324 "next" : " >=13.1"
Original file line number Diff line number Diff line change 2020 "noImplicitReturns" : true ,
2121 "noFallthroughCasesInSwitch" : true ,
2222 "moduleResolution" : " node" ,
23+ "skipLibCheck" : true ,
2324 "baseUrl" : " ./" ,
2425 "jsx" : " react" ,
2526 "esModuleInterop" : true ,
You can’t perform that action at this time.
0 commit comments