Skip to content

Commit a3ac457

Browse files
committed
Updates the deploy to TS process
1 parent 9d9e0c1 commit a3ac457

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/pr-to-typescript.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
workflow_dispatch: {}
44

55
jobs:
6-
test:
6+
deploy:
77
runs-on: ubuntu-latest
88

99
steps:
@@ -23,8 +23,15 @@ jobs:
2323
path: "TypeScript"
2424

2525
- run: |
26+
# Move the new lib files ins
2627
node ./deploy/migrate.js ./TypeScript
2728
29+
# Update the TypeScript test baselines also
30+
cd TypeScript
31+
npm i
32+
gulp runtests-parallel
33+
gulp baseline-accept
34+
2835
- uses: peter-evans/create-pull-request@v3
2936
with:
3037
path: TypeScript

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ npm run test
3636
| `@types/web` [0.0.1](https://www.npmjs.com/package/@types/web/v/0.0.1) | ~4.3 | 4.4 |
3737
| `@types/web` [0.0.2](https://www.npmjs.com/package/@types/web/v/0.0.2) | ~4.4 beta | 4.4 |
3838
| `@types/web` [0.0.25](https://www.npmjs.com/package/@types/web/v/0.0.25) | 4.4 | 4.4 |
39-
| `@types/web` [0.0.37](https://www.npmjs.com/package/@types/web/v/0.0.37) | 4.5 beta | 4.4 |
39+
| `@types/web` [0.0.28](https://www.npmjs.com/package/@types/web/v/0.0.28) | 4.5 beta | 4.4 |
4040

4141
## `@types/[lib]` Minimum Target
4242

@@ -82,13 +82,8 @@ If you are familiar with Web IDL, you may also want to check whether the upstrea
8282

8383
To migrate the *.d.ts files into TypeScript:
8484

85-
1. Run:
85+
1. [Trigger the workflow here](https://github.com/microsoft/TypeScript-DOM-lib-generator/actions/workflows/pr-to-typescript.yml) - this will send a PR to TypeScript under your alias.
8686

87-
```sh
88-
npm run migrate -- [optional/file/path/to/tsc]
89-
```
90-
91-
The script will look in for a clone of the TypeScript repo in "../TypeScript", or "./TypeScript" to move the generated files in. Or migrate the files manually, you do you.
9287

9388
1. Update the README table with the mappings for versions in the `@types/[lib]`. E.g. TS 4.5 -> `@types/web` `0.0.23`. Find that number here: https://www.npmjs.com/package/@types/web
9489

0 commit comments

Comments
 (0)