Skip to content

Commit 64c8461

Browse files
authored
Merge pull request #47 from jupyter-server/yarn-install
Install yarn if it is not already installed
2 parents 8285f2d + 07a0384 commit 64c8461

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)