File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,18 @@ npm i -g netlify-cli
9
9
NETLIFY_CLI=$( which netlify)
10
10
11
11
# Install node from NVM to honor .nvmrc files
12
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
13
- [ -s " $HOME /.nvm/nvm.sh" ] && \. " $HOME /.nvm/nvm.sh"
12
+ if [[ -n $9 ]] || [[ -e " .nvmrc" ]]
13
+ then
14
+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
15
+ [ -s " $HOME /.nvm/nvm.sh" ] && \. " $HOME /.nvm/nvm.sh"
14
16
15
- nvm install " $9 "
17
+ if [[ -n $9 ]]
18
+ then
19
+ nvm install " $9 "
20
+ else
21
+ nvm install
22
+ fi
23
+ fi
16
24
17
25
NETLIFY_AUTH_TOKEN=$1
18
26
NETLIFY_SITE_ID=$2
@@ -62,4 +70,4 @@ NETLIFY_LIVE_URL=$(echo "$OUTPUT" | grep -Eo '(http|https)://[a-zA-Z0-9./?=_-]*'
62
70
echo " ::set-output name=NETLIFY_OUTPUT::$NETLIFY_OUTPUT "
63
71
echo " ::set-output name=NETLIFY_PREVIEW_URL::$NETLIFY_PREVIEW_URL "
64
72
echo " ::set-output name=NETLIFY_LOGS_URL::$NETLIFY_LOGS_URL "
65
- echo " ::set-output name=NETLIFY_LIVE_URL::$NETLIFY_LIVE_URL "
73
+ echo " ::set-output name=NETLIFY_LIVE_URL::$NETLIFY_LIVE_URL "
You can’t perform that action at this time.
0 commit comments