Plugin to execute NPM, PNPM or Yarn scripts.
Features
- automatically find used package manager (based on lockfile)
- install if
node_modules
don't exist - run multiple tasks
Usage
Example pipeline running one script:
pipeline:
build:
image: codeberg.org/woodpecker-plugins/node-pm
settings:
run: build # script name
with: pnpm # if `with` is set, enforce to use this package manager
Example pipeline running multiple scripts (prepare
and build
):
pipeline:
build:
image: codeberg.org/woodpecker-plugins/node-pm
settings:
run:
- prepare
- build