Skip to content

Commit e3deaa0

Browse files
authored
Add typecheck for bundle (#2014)
1 parent 3643ff3 commit e3deaa0

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+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
typecheck-dist:
11+
name: Check ${{ matrix.package }} distributed types
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
## to add other packages from the monorepo, add them to the matrix
16+
package: [start]
17+
steps:
18+
- name: Checkout Repo
19+
uses: actions/checkout@v4
20+
21+
- uses: pnpm/action-setup@v4
22+
23+
- name: Use Node.js from nvmrc
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version-file: ".nvmrc"
27+
registry-url: "https://registry.npmjs.org"
28+
cache: "pnpm"
29+
30+
- name: Install Dependencies
31+
run: pnpm i --frozen-lockfile
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)