The NPM plugin can be used to publish libraries to public or private registries.

Example

kind: pipeline
name: default

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

Properties

  • username

    stringrequired

    the username for the account to publish with

    Default: none

  • password

    stringrequired

    the password for the account to publish with

    Secret recommended

    Default: none

  • token

    stringoptional

    the token for the account to publish with

    Secret recommended

    Default: none

  • email

    stringoptional

    the email for the account to publish with

    Default: none

  • registry

    stringoptional

    the registry to publish to

    Default: https://registry.npmjs.org

  • folder

    stringoptional

    the folder, relative to the workspace, containing the library.

    Default: the workspace directory

  • access

    stringoptional

    NPM scoped package access

    Default: none