feat: Add support for TypeScript scripts

Both of the .cts and .mts flavors. Because this action is written in CommonJS both have to compile to CommonJS in order to execute.

As it is TypeScript there's already an expectation of some slowness, so I went with the approach of running the script via the node VM module. While a cleaner approach, it has the caveat that root level await in the script doesn't work. That should become available if https://github.com/actions/github-script/issues/457 is completed.
This commit is contained in:
Ricky C 2024-07-05 18:49:10 -07:00
parent ccf1a8e117
commit d3f9a3b3fb
9 changed files with 178341 additions and 15 deletions

178044
dist/index.js vendored

File diff suppressed because one or more lines are too long