'yarnrc AuthToken for a specific action
my .yarnrc file includes the following code:
npmScopes:
myOrg:
npmAuthToken: '${NPM_TOKEN}'
npmAlwaysAuth: true
npmRegistryServer: 'https://registry.npmjs.org'
and I want the auth to ask for NPM_TOKEN only for yarn add, and for other yarn <command> to not ask for the NPM_TOKEN
for example
npmScopes:
myOrg yarn add:
npmAuthToken: '${NPM_TOKEN}'
npmAlwaysAuth: true
npmRegistryServer: 'https://registry.npmjs.org'
is it possible?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
