Skip to content

This is a buildkite plugin to install a global npm package as part of the agent build. Utilises a custom node package location

License

Notifications You must be signed in to change notification settings

lendi-au/npm-global-buildkite-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Private Global NPM Packages

A Buildkite plugin to utilise global installations of npm packages in your builds. This is particularly useful if you need to access private packages.

Prerequisites

Node installation on your Buildkite agents.

Install a npm package as global

steps:
  - plugins:
    - lendi-au/npm-global:
          env: "NPM_TOKEN"
          package: "@private-org/package"

Custom registry support

We have a custom registry which uses basic authentication rather than a typical NPM_TOKEN.

steps:
  - plugins:
    - lendi-au/npm-global:
          token: "echo -n user:password | openssl base64"
          authtype: "BASIC"
          registry: "https://my-registry.example.org"
          package: "@private-org/package"

About

This is a buildkite plugin to install a global npm package as part of the agent build. Utilises a custom node package location

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages