README
@ambassify/set-npmrc
This script searches for .npmrc
files in the current working directory and
appends authentication to it.
Usage
- A
.npmrc
file must already be present - An
NPM_TOKEN
environment variable must be set - A custom registry can be passed as the first argument, e.g.
npm.ambassify.eu
. If not set, it will check for anNPM_REGISTRY
environment variable or default toregistry.npmjs.org
if it isn't present.
npx @ambassify/set-npmrc [registry]