Drone plugins > NPM Auth
NPM Auth
by robertstettner
This plugin is used to generate an .npmrc file locally to authenticate against any public/private NPM repository.
Example
kind: pipeline
name: default
steps:
- name: npm-auth
image: robertstettner/drone-npm-auth
settings:
username: joebloggs
password: mypass
email: jb@me.com
Properties
username
stringrequiredThe NPM username
Default: none
password
stringrequiredThe NPM password
Secret recommendedDefault: none
email
stringrequiredThe NPM email
Default: none
registry
stringoptionalThe NPM registry
Default: https://registry.npmjs.org
scope
stringoptionalThe NPM scope
Default: none
path
stringoptionalOutput path of the generated .npmrc file.
Default: ./