Skip to content

Commit

Permalink
Apparently --yes cli option matters
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Oct 16, 2023
1 parent e9d6270 commit 8efbf88
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,20 @@ def bump(force: bool, spec: str) -> None:

# convert the Python version
lerna_cmd = LERNA_CMD
js_spec = spec
if spec in ["alpha", "a", "beta", "b", "rc"]:
js_spec = "--force-publish prerelease"
js_spec = "--force-publish"
spec = "prerelease"
elif spec == "release":
js_spec = "--conventional-commits --no-changelog --conventional-graduate"
spec = ""
else:
js_spec = f"--force-publish " + js_spec
js_spec = f"--force-publish"

# bump the JS packages
if force:
lerna_cmd += " -y"
lerna_cmd += f" {js_spec}"
# This needs to be the latest option for weird reason
js_spec += " -y"
lerna_cmd += f" {js_spec} {spec}"
print(f"Executing '{lerna_cmd}'...")
run(lerna_cmd, cwd=HERE, shell=True)

Expand Down

0 comments on commit 8efbf88

Please sign in to comment.