Skip to content

Commit

Permalink
Install yarn if it is not already installed
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio authored Jun 28, 2021
1 parent 8285f2d commit 07a0384
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jupyter_releaser/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,8 @@ def prep_git(ref, branch, repo, auth, username, url, install=True):

# prefer yarn if yarn lock exists
elif util.YARN_LOCK.exists():
util.run("npm install -g yarn")
if not shutil.which("yarn"):
util.run("npm install -g yarn")
util.run("yarn")

# npm install otherwise
Expand Down

0 comments on commit 07a0384

Please sign in to comment.