This action logs into NPM registries by managing a .npmrc file.
It will create one if it doesn't exist or append to an existing one.
You have the ability to login to multiple registries by using this action multiple times.
Required The registry scope (e.g. @acmeorg).
Required The registry domain (e.g. https://npm.pkg.github.com).
Required The registry auth token.
Optional The directory to manage the .npmrc file in.
uses: kevboutin/npmrc-registry-action@v1.0
with:
scope: '@acmeorg'
registry: 'https://npm.pkg.github.com'
auth-token: 'secret'
You can also use with path
to run in another directory:
uses: kevboutin/npmrc-registry-action@v1.0
with:
scope: '@acmeorg'
registry: 'https://npm.pkg.github.com'
auth-token: 'secret'
path: dist
nvm install
ncc build index.js --license licenses.txt