Drone plugins > NPM Auth
npm2.svg

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

    stringrequired

    The NPM username

    Default: none

  • password

    stringrequired

    The NPM password

    Secret recommended

    Default: none

  • email

    stringrequired

    The NPM email

    Default: none

  • registry

    stringoptional

    The NPM registry

    Default: https://registry.npmjs.org

  • scope

    stringoptional

    The NPM scope

    Default: none

  • path

    stringoptional

    Output path of the generated .npmrc file.

    Default: ./