From 3e23e147633bac186ec6465ac0c3866736c69b7f Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Fri, 3 Nov 2023 15:23:45 +0000 Subject: [PATCH] Update node installation on debian (#41276) Co-authored-by: fortmarek --- .circleci/config.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5757019ef8f888..efbe124676edc0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1149,7 +1149,15 @@ jobs: command: | apt update apt install -y wget git curl - curl -sL https://deb.nodesource.com/setup_16.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=16 + 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