-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 935 Bytes
/
build.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
35
36
37
38
39
40
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Install yarn
run: npm install -g yarn
- name: Bootstrap Script
run: yarn
- uses: actions/checkout@v2
with:
repository: microsoft/TypeScript
path: ts
- name: Bootstrap TypeScript
run: npm install
working-directory: ./ts
- name: Rewrite TypeScript Config
run: node ./src/rewrite.mjs ./ts
- name: Build TypeScript
run: npm run build
working-directory: ./ts
- name: Convert libs
run: node ./src/convert.mjs ./ts/built/local -o ./libs/index.d.ts
- name: Upload build
uses: actions/upload-artifact@v2
with:
name: libs
path: ./libs