Skip to content

Commit bdc0ef3

Browse files
authored
[RN][CI]Update node installation on debian (0.71) (#41277)
1 parent b0a27d2 commit bdc0ef3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.circleci/config.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,15 @@ jobs:
11511151
command: |
11521152
apt update
11531153
apt install -y wget git curl
1154-
curl -sL https://deb.nodesource.com/setup_16.x | bash -
1154+
1155+
apt-get update
1156+
apt-get install -y ca-certificates curl gnupg
1157+
mkdir -p /etc/apt/keyrings
1158+
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
1159+
NODE_MAJOR=16
1160+
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
1161+
apt-get update
1162+
11551163
apt install -y nodejs
11561164
npm install --global yarn
11571165
- checkout

0 commit comments

Comments
 (0)