We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74217eb commit f80a459Copy full SHA for f80a459
jupyter_releaser/lib.py
@@ -417,7 +417,16 @@ def publish_assets(
417
twine_cmd = "pipx run twine upload --repository-url=http://0.0.0.0:8081"
418
os.environ["TWINE_USERNAME"] = "foo"
419
twine_token = twine_token or "bar"
420
- npm_cmd = "npm publish --dry-run"
+ # Preserve --tag flag if it was added for prereleases
421
+ if " --tag " in npm_cmd:
422
+ # Extract the tag and add --dry-run while preserving it
423
+ tag_match = re.search(r"--tag\s+(\S+)", npm_cmd)
424
+ if tag_match:
425
+ npm_cmd = f"npm publish --dry-run --tag {tag_match.group(1)}"
426
+ else:
427
+ npm_cmd = "npm publish --dry-run"
428
429
430
else:
431
os.environ.setdefault("TWINE_USERNAME", "__token__")
432
0 commit comments