When a packed version of TypeScript ios requested, also send a request to create a build of monaco for the playground

This commit is contained in:
Orta Therox 2019-09-20 15:20:10 -04:00
parent d7c83f023e
commit 26c816f932

View File

@ -28,6 +28,10 @@ async function main() {
type: "token",
token: process.argv[2]
});
// Please keep the strings "an installable tgz" and "packed" in this message, as well as the devDependencies section,
// so that the playgrounds deployment process can find these comments.
await gh.issues.createComment({
number: +process.env.SOURCE_ISSUE,
owner: "Microsoft",
@ -43,6 +47,9 @@ async function main() {
and then running \`npm install\`.
`
});
// Send a ping to https://github.com/orta/make-monaco-builds#pull-request-builds
await gh.request("POST /repos/orta/make-monaco-builds/dispatches", { event_type: +process.env.SOURCE_ISSUE })
}
main().catch(async e => {
@ -61,4 +68,4 @@ main().catch(async e => {
body: `Hey @${process.env.REQUESTING_USER}, something went wrong when looking for the build artifact. ([You can check the log here](https://typescript.visualstudio.com/TypeScript/_build/index?buildId=${process.env.BUILD_BUILDID}&_a=summary)).`
});
}
});
});