-
Notifications
You must be signed in to change notification settings - Fork 411
47 lines (40 loc) · 1.25 KB
/
pr-to-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
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Create PR to TypeScript
on:
workflow_dispatch: {}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: npm
- run: npm ci
- run: npm run build
- run: npm test
- uses: actions/checkout@v2
with:
repository: "microsoft/TypeScript"
path: "TypeScript"
- run: |
# Move the new lib files ins
node ./deploy/migrate.js ./TypeScript
# Update the TypeScript test baselines also
cd TypeScript
npm i
gulp runtests-parallel || true
gulp baseline-accept
git restore package-lock.json
- uses: peter-evans/create-pull-request@v3
with:
path: TypeScript
commit-message: "🤖 Update TypeScript DOM Libs"
title: "Update TypeScript DOM Libs"
body: "This PR was generated by @${{ github.actor }} from https://github.com/microsoft/TypeScript-DOM-lib-generator/"
push-to-fork: typescript-bot/TypeScript
branch: update-dom
labels: |
Domain: lib.d.ts
Housekeeping
token: ${{ secrets.TS_GITHUB_BOT_AUTH }}