Skip to content

Commit 641a11f

Browse files
authored
[RN][CI]Update node installation on debian (0.73) (#41275)
1 parent 8414427 commit 641a11f

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.circleci/config.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,16 @@ jobs:
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

.circleci/configurations/jobs.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)