Skip to content

NPM CLI

Docker Image SizeLicenseGit Repository

Executes NPM and Node.js commands.

Use command to specify the command to be executed, e.g.:

yaml
command: npm run build

Params

ParamDescription
NPM_LOGIN_REGISTRYNPM registry to log in to (string)
NPM_LOGIN_TOKENNPM token to log in with (instead of NPM_LOGIN_USER / NPM_LOGIN_PASSWORD) (string)
NPM_LOGIN_USERNPM user to log in with (instead of NPM_LOGIN_TOKEN) (string)
NPM_LOGIN_PASSWORDNPM password to log in with (instead of NPM_LOGIN_TOKEN) (string)
CONTEXTContext directory (relative to project root) (default: .) (string)