File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 3535 command : |
3636 apt update
3737 apt install -y wget git curl jq
38- curl -sL https://deb.nodesource.com/setup_18.x | bash -
38+
39+ apt-get update
40+ apt-get install -y ca-certificates curl gnupg
41+ mkdir -p /etc/apt/keyrings
42+ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
43+
44+ NODE_MAJOR=18
45+ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
46+ apt-get update
47+
3948 apt install -y nodejs
4049 npm install --global yarn
4150 - checkout
Original file line number Diff line number Diff line change @@ -621,7 +621,7 @@ jobs:
621621 - run :
622622 name : Install Node JS
623623 # Note: Version set separately for non-Windows builds, see above.
624- command : choco install nodejs-lts
624+ command : choco install nodejs --version=18.18.0 --allow-downgrade
625625
626626 # Setup Dependencies
627627 - run :
@@ -681,7 +681,16 @@ jobs:
681681 apt update
682682
683683 apt install -y wget git curl jq
684- curl -sL https://deb.nodesource.com/setup_18.x | bash -
684+
685+ apt-get update
686+ apt-get install -y ca-certificates curl gnupg
687+ mkdir -p /etc/apt/keyrings
688+ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
689+
690+ NODE_MAJOR=18
691+ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
692+ apt-get update
693+
685694 apt install -y nodejs
686695 npm install --global yarn
687696 - checkout
You can’t perform that action at this time.
0 commit comments