To develop and test the action, you need to install Node.js. To install Node.js, use your OS package manager or follow the instruction on the Node.js website.
npm install
npm run lint-fix
npm run build
It is important to bundle the action before running it locally or pushing it to the remote repository.
To run the action locally, set the RUNNER_TEMP
environment variable to a
temporary directory. Then use the run script to execute the action:
export RUNNER_TEMP=/tmp/runner_temp
npm run run
To provide input variables to the action, set the environment variables before running the action:
INPUT_PLATFORM=macOS INPUT_VERSION=1.23.0 INPUT_ARCHITECTURE=x86_64 npm run run