A Buildkite plugin to utilise global installations of npm packages in your builds. This is particularly useful if you need to access private packages.
Node installation on your Buildkite agents.
steps:
- plugins:
- lendi-au/npm-global:
env: "NPM_TOKEN"
package: "@private-org/package"
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"