Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Node runner

Simple image for executing node tasks inside a container.

The image will run npm i --prefer-offline --no-audit befor it run your script.

Images:

Node versionimage
14ghcr.io/scarbous/node-runner/14
16ghcr.io/scarbous/node-runner/16
18ghcr.io/scarbous/node-runner/18
19ghcr.io/scarbous/node-runner/19

Usage

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.

Environment variables

NameInfo
DIRThe dir which contains your package.json
TASKName of the script to run

GitHub docker action

The action runs the configured script from your package.json.

Inputs

NameDefaultInfo
DIR"/"The dir which contains your package.json
TASK"build"Name of the script to run

Example usage

In this example the runner will execute the build script inside the Build dir.

steps:
- uses: Scarbous/node-runner@1.0.6with:
dir: Buildtask: build

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages