Skip to content

Commit

Permalink
Pin nvm version by SHA
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGreene authored and tekton-robot committed Dec 2, 2024
1 parent f00cb87 commit 314a44e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/presubmit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ function post_build_tests() {

function get_node() {
echo "Installing Node.js"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash
# nvm v0.40.1
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/179d45050be0a71fd57591b0ed8aedf9b177ba10/install.sh | bash
export NVM_DIR="$HOME/.nvm"
source "$NVM_DIR/nvm.sh"
nvm --version
# if nvm install fails using the Node.js binary, the `-b` causes it to exit
# instead of trying to build from source
nvm install -b
Expand Down

0 comments on commit 314a44e

Please sign in to comment.