Skip to content

Commit

Permalink
test(ci): make android CI script more rerun-tolerant
Browse files Browse the repository at this point in the history
if the ~/.npm-global directory already exists, then we don't need
to try (and maybe fail) to create it or re-install deps that are already
there
  • Loading branch information
mikehardy committed Nov 5, 2021
1 parent 6c51e79 commit 50d7e48
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash -e

mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH

npm install -g lerna@3.22.1
npm install -g react-native-cli >/dev/null 2>&1
if [ -d ~/.npm-global ]; then
mkdir ~/.npm-global
npm install -g lerna@3.22.1
npm install -g react-native-cli >/dev/null 2>&1
fi

0 comments on commit 50d7e48

Please sign in to comment.