Set up npm action
This commit is contained in:
24
action.yml
Normal file
24
action.yml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
name: NPM-Script runner
|
||||||
|
description: Run an npm script for your project
|
||||||
|
author: Janis Hutz
|
||||||
|
inputs:
|
||||||
|
script:
|
||||||
|
required: true
|
||||||
|
description: The name of the npm script to run
|
||||||
|
workdir:
|
||||||
|
required: true
|
||||||
|
description: The directory to run in, relative to project root
|
||||||
|
full-deps:
|
||||||
|
required: false
|
||||||
|
default: "false"
|
||||||
|
description: Whether or not to also include dev dependencies (true = include)
|
||||||
|
runs:
|
||||||
|
using: docker
|
||||||
|
main: "docker://git.janishutz.com/registry/npm-runner"
|
||||||
|
args:
|
||||||
|
- ${{ inputs.script }}
|
||||||
|
- ${{ inputs.workdir }}
|
||||||
|
- ${{ inputs.full-deps }}
|
||||||
|
branding:
|
||||||
|
icon: zap
|
||||||
|
color: green
|
||||||
Reference in New Issue
Block a user