mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Move .nvmrc before nvm init in CI
.nvmrc was causing nvm.sh to fail with code 3 because v8.9.2 is not installed on clean machines.
This commit is contained in:
parent
c1ebba8f2e
commit
b708fc1c0b
|
@ -2,12 +2,14 @@
|
|||
set -e
|
||||
|
||||
# setup nvm
|
||||
mv ../../../.nvmrc nvmrc # Remove for init otherwise nvm init could fail
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
export NVM_DIR=~/.nvm
|
||||
source $(brew --prefix nvm)/nvm.sh
|
||||
else
|
||||
source $NVM_DIR/nvm.sh
|
||||
fi
|
||||
mv nvmrc ../../../.nvmrc
|
||||
|
||||
# install node
|
||||
NODE_VERSION=8.9.1
|
||||
|
|
Loading…
Reference in a new issue