diff --git a/.scripts/automation_generate.sh b/.scripts/automation_generate.sh index c64296ed8192..6620275fd348 100644 --- a/.scripts/automation_generate.sh +++ b/.scripts/automation_generate.sh @@ -1,9 +1,5 @@ #!/usr/bin/env bash -cat ~/.bashrc -. ~/.bashrc -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" -nvm use v18.15.0 +nvm use default whereis code-gen-pipeline whereis node node -v diff --git a/.scripts/automation_init.sh b/.scripts/automation_init.sh index 8f65807f9177..afd19458de4b 100644 --- a/.scripts/automation_init.sh +++ b/.scripts/automation_init.sh @@ -1,16 +1,10 @@ #!/usr/bin/env bash curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm nvm install v18.15.0 -nvm use v18.15.0 +nvm alias default node npm install -g @microsoft/rush@5.92.0 npm install -g @azure-tools/js-sdk-release-tools whereis code-gen-pipeline whereis node -. ~/.bashrc -cat ~/.bashrc - -#code-gen-pipeline: /home/cloudtest/.nvm/versions/node/v18.15.0/bin/code-gen-pipeline -#node: /usr/local/bin/node /home/cloudtest/.nvm/versions/node/v18.15.0/bin/node /opt/hostedtoolcache/node/16.20.2/x64/bin/node -#node: /usr/local/bin/node /opt/hostedtoolcache/node/16.20.2/x64/bin/node