by OptionOfT · 1y ago · 0 comments
OTOH I've been moving from native NodeJS actions to packing them in a Docker container to separate code from compiled code.
If you wanted to use Typescript for your action you always had a 2 step process because GitHub Actions required you to pack dependencies with ncc or vite or webpack.
This packaged version was subsequently committed to the main branch.
Technically I could do a composite action where I compile the typescript on the fly, but that was fragile last time I tried it.
https://vercel.com/docs/functions/runtimes/node-js/node-js-v...
* cloning the action
* running the dist/index.js
to * Cloning the action
* npm install
* npm compile
* npm run