- Install node
- Install additional node tooling (
npm i -g @vercel/ncc) - Install the node package dependencies (
npm install)
tldr: edit Dart source files and run npm run all to re-compile the action
Generally, to work on the action, edit the Dart source code in lib/ and
re-compile the JavaScript code via npm run all. This will:
- compile the Dart source (via dart2js) to
lib/main.js; copy that file todist/main.cjs - package and minify the
lib/main.mjsentrypoint point and referenced node modules todist/index.mjs
lib/main.dart- the Dart entry-point to the actionlib/main.mjs- the JavaScript wrapper; this sets up some important JS interop globals and bootstraps intolib/main.dartdist/index.mjs- the execution entry-point of the action
See our publishing wiki page.