Simple image for executing node tasks inside a container.
The image will run npm i --prefer-offline --no-audit befor it run your script.
| Node version | image |
|---|---|
| 14 | ghcr.io/scarbous/node-runner/14 |
| 16 | ghcr.io/scarbous/node-runner/16 |
| 18 | ghcr.io/scarbous/node-runner/18 |
| 19 | ghcr.io/scarbous/node-runner/19 |
Mount the your app to /src.
By default the Image will run the script dev which is defined in the package.json in your project-root.
| Name | Info |
|---|---|
| DIR | The dir which contains your package.json |
| TASK | Name of the script to run |
The action runs the configured script from your package.json.
| Name | Default | Info |
|---|---|---|
| DIR | "/" |
The dir which contains your package.json |
| TASK | "build" |
Name of the script to run |
In this example the runner will execute the build script inside the Build dir.
steps:
- uses: Scarbous/[email protected]
with:
dir: Build
task: build