-
-
Notifications
You must be signed in to change notification settings - Fork 80
29 lines (26 loc) · 656 Bytes
/
Copy pathtypes.yml
File metadata and controls
29 lines (26 loc) · 656 Bytes
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
name: TypeScript types
on:
push:
branches: [master, main]
paths:
- 'ts/index.d.ts'
- 'index.js'
- 'ts/typings-check.ts'
- 'ts/tsconfig.json'
- '.github/workflows/types.yml'
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
- name: Install type-check dependencies
run: npm install --no-save typescript @types/node
- name: Check index.d.ts
run: npx tsc --project ts/tsconfig.json