From 72efcb961dd8b4f25530aa49b0cf7297f17a6891 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Wed, 1 Nov 2023 09:32:00 +0000 Subject: [PATCH] Update node installation on debian --- .circleci/config.yml | 11 ++++++++++- .circleci/configurations/jobs.yml | 13 +++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 94756b5538715a..8430e0e37ec756 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,7 +35,16 @@ jobs: command: | apt update apt install -y wget git curl jq - curl -sL https://deb.nodesource.com/setup_18.x | bash - + + apt-get update + apt-get install -y ca-certificates curl gnupg + mkdir -p /etc/apt/keyrings + curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg + + NODE_MAJOR=18 + 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 + apt-get update + apt install -y nodejs npm install --global yarn - checkout diff --git a/.circleci/configurations/jobs.yml b/.circleci/configurations/jobs.yml index d0d17a83f6aa36..d21c54aee889c7 100644 --- a/.circleci/configurations/jobs.yml +++ b/.circleci/configurations/jobs.yml @@ -621,7 +621,7 @@ jobs: - run: name: Install Node JS # Note: Version set separately for non-Windows builds, see above. - command: choco install nodejs-lts + command: choco install nodejs --version=18.18.0 --allow-downgrade # Setup Dependencies - run: @@ -681,7 +681,16 @@ jobs: apt update apt install -y wget git curl jq - curl -sL https://deb.nodesource.com/setup_18.x | bash - + + apt-get update + apt-get install -y ca-certificates curl gnupg + mkdir -p /etc/apt/keyrings + curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg + + NODE_MAJOR=18 + 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 + apt-get update + apt install -y nodejs npm install --global yarn - checkout