-
-
Notifications
You must be signed in to change notification settings - Fork 117
34 lines (28 loc) · 982 Bytes
/
typescript.yml
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
name: TypeScript
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
jobs:
typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with: { node-version: 20 }
- run: npm ci
- run: npm run build:node
- run: npm run test:types
- run: npm run test:dist:types
- run: npm install --no-save @types/node@14 [email protected]
- run: for d in node_modules/@types/*; do [[ $d == *node ]] || rm -r $d; done
- run: npm run test:dist:types
- run: npm install --no-save @types/node@14 [email protected]
- run: for d in node_modules/@types/*; do [[ $d == *node ]] || rm -r $d; done
- run: npm run test:dist:types
- run: npm install --no-save @types/node@14 [email protected]
- run: for d in node_modules/@types/*; do [[ $d == *node ]] || rm -r $d; done
- run: npm run test:dist:types