The steps follow closely GitHub documentation on creating a JavaScript action
The requirements are:
- Git
- Node.js (version 20)
Directory src
contains the main source for the GitHub action.
Directory dist
contains automatically compiled modules for distribution.
npm install
npm i -g @vercel/ncc
npm run -s build
You'll see changes in the dist
directory.
There is a workflow in this repository for testing the action. Open a pull request to see it run on GitHub Actions.
You should always recompile the action and commit changes to dist
prior to
merging a PR.