NPM

by donny-dont

The NPM plugin can be used to publish libraries to public or private registries. The below pipeline configuration demonstrates simple usage:

kind: pipeline
name: default

steps:
- name: npm
  image: plugins/npm
  settings:
    username: bob
    password: password
    email: bob@bob.me

Example configuration sourcing the token from a named secret:

steps:
- name: npm
  image: plugins/npm
  settings:
    username: bob
    password:
      from_secret: npm_password
    email: bob@bob.me

Example configuration using a custom registry:

steps:
- name: npm
  image: plugins/npm
  settings:
    username: bob
    password: password
    email: bob@bob.me
    registry: "http://myregistry:4873"

NPM Enterprise Authentication

NPM enterprise users can optionally authenticate using authorization tokens. The token will always override the username and password authentication method.

steps:
- name: npm
  image: plugins/npm
  settings:
    username: bob
    password: password
    token: f0e4c2f76c58916ec25
    email: bob@bob.me

Parameter Reference

username
the username for the account to publish with
password
the password for the account to publish with
token
the deploy token to publish with
email
the email address associated with the account to publish with.
registry
the registry URL. defaults to https://registry.npmjs.org.
folder
the folder, relative to the workspace, containing the library. defaults to the workspace directory.

¿Hay algún error en esta página? Por favor, háganoslo saber o edite esta página.