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 fcab5aa + 8aab79a commit 43ec611Copy full SHA for 43ec611
jupyter_releaser/npm.py
@@ -130,10 +130,12 @@ def extract_package(path):
130
def handle_npm_config(npm_token):
131
"""Handle npm_config"""
132
npmrc = Path(".npmrc")
133
- registry = os.environ.get("NPM_REGISTRY", "registry.npmjs.org")
+ 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:
- text += f"\n///{registry}:_authToken={npm_token}"
138
+ text += f"\n{registry}:_authToken={npm_token}"
139
if npmrc.exists():
140
text = npmrc.read_text(encoding="utf-8") + text
141
npmrc.write_text(text, encoding="utf-8")
0 commit comments