@ambassify/set-npmrc
v2.0.1
Published
Configures npm authentication token for private tokens
Readme
@ambassify/set-npmrc
This script adds NPM registry authentication through the .npmrc file in the
current directory. If no .npmrc file exists, it is created, otherwise the
authentication is appended to the existing file.
Usage
npx @ambassify/set-npmrc [--registry registry] [--env token_var_key]Options:
--registry: For which registry to set authentication, e.g.npm.ambassify.eu. If not set, it will use npm'sNPM_CONFIG_REGISTRYenvironment variable or default toregistry.npmjs.orgif it isn't present.--env: The environment variable that contains the token for authentication. If the variable isn't set, no authentication will be added. Defaults toNPM_TOKEN.
