Skip to content

Commit c64a55b

Browse files
committed
check dist typecheck
1 parent e5bae1f commit c64a55b

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Type Check Distribution
2+
3+
on:
4+
pull_request:
5+
branches-ignore:
6+
- 1.x
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
typecheck-dist:
13+
name: Check ${{ matrix.package }} distributed types
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
# @todo
18+
# add Start for v2
19+
package: ["@solidjs/vite-plugin-nitro-2"]
20+
steps:
21+
- name: Checkout Repo
22+
uses: actions/checkout@v3
23+
24+
- uses: pnpm/action-setup@v3
25+
26+
- name: Use Node.js from nvmrc
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version-file: ".nvmrc"
30+
registry-url: "https://registry.npmjs.org"
31+
cache: "pnpm"
32+
33+
- name: Build ${{ matrix.package }} package and dependencies
34+
# build the package and all its dependencies
35+
run: pnpm --filter ${{ matrix.package }}... build
36+
37+
- name: Check types with @arethetypeswrong/cli
38+
run: pnpx @arethetypeswrong/cli --pack packages/${{ matrix.package }} --profile esm-only

0 commit comments

Comments
 (0)