README
@ambassify/set-npmrc
This script searches for .npmrc files in the current working directory and
appends authentication to it.
Usage
- A
.npmrcfile must already be present - An
NPM_TOKENenvironment 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_REGISTRYenvironment variable or default toregistry.npmjs.orgif it isn't present.
npx @ambassify/set-npmrc [registry]