We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7002d89 + 8d3c4c4 commit 0e521a2Copy full SHA for 0e521a2
jupyter_releaser/npm.py
@@ -131,10 +131,10 @@ def handle_npm_config(npm_token):
131
"""Handle npm_config"""
132
npmrc = Path(".npmrc")
133
registry = os.environ.get("NPM_REGISTRY", "https://registry.npmjs.org/")
134
- registry = registry.replace("https:", "")
135
- registry = registry.replace("http:", "")
136
text = f"registry={registry}"
137
if npm_token:
+ registry = registry.replace("https:", "")
+ registry = registry.replace("http:", "")
138
text += f"\n{registry}:_authToken={npm_token}"
139
if npmrc.exists():
140
text = npmrc.read_text(encoding="utf-8") + text
0 commit comments