-
Notifications
You must be signed in to change notification settings - Fork 415
40 lines (32 loc) · 1.02 KB
/
dist-typecheck.yml
File metadata and controls
40 lines (32 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Type Check Distribution
on:
pull_request: ~
push:
branches:
- main
jobs:
typecheck-dist:
name: Check ${{ matrix.package }} distributed types
runs-on: ubuntu-latest
strategy:
matrix:
## to add other packages from the monorepo, add them to the matrix
package: [start]
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Use Node.js from nvmrc
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Build ${{ matrix.package }} package and dependencies
# build the package and all its dependencies
run: pnpm --filter ${{ matrix.package }}... build
- run: pnpm rewrite-exports
- name: Check types with @arethetypeswrong/cli
run: pnpm --filter ${{ matrix.package }} typecheck:dist