Skip to content

Commit 07a0384

Browse files
authored
Install yarn if it is not already installed
1 parent 8285f2d commit 07a0384

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jupyter_releaser/lib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,8 @@ def prep_git(ref, branch, repo, auth, username, url, install=True):
486486

487487
# prefer yarn if yarn lock exists
488488
elif util.YARN_LOCK.exists():
489-
util.run("npm install -g yarn")
489+
if not shutil.which("yarn"):
490+
util.run("npm install -g yarn")
490491
util.run("yarn")
491492

492493
# npm install otherwise

0 commit comments

Comments
 (0)