You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to have npm support this out-of-the-box via npm login --ci flag to properly create the .npmrc file based on e.g. environment variables.
For private registries, the hack I need to use today is:
echo -n $NPM_REGISTRY_URL:_auth= | sed -E 's/([a-z]+:)//' > .npmrc
echo -n "$NPM_REGISTRY_USER:$NPM_REGISTRY_PASS" | openssl base64 -A >> .npmrc
The text was updated successfully, but these errors were encountered:
The CI systems depend on setting up properly ~/.npmrc file to allow
npm publish
to work.At the moment there are several hack-pproaches to do this, e.g. https://github.com/postmanlabs/npm-cli-login or #3573 (comment)
It would be great to have npm support this out-of-the-box via
npm login --ci
flag to properly create the.npmrc
file based on e.g. environment variables.For private registries, the hack I need to use today is:
The text was updated successfully, but these errors were encountered: