Skip to content

Commit ff01e62

Browse files
committed
ci: install node with NodeSource
1 parent 83bb2e8 commit ff01e62

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,10 @@ jobs:
4545
sudo bash /tmp/nodesource_setup.sh
4646
apt-get update
4747
apt-get install -y git gcc-9 g++-9
48-
touch ~/.bashrc
49-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
50-
export NVM_DIR="$HOME/.nvm"
51-
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
52-
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
53-
source ~/.bashrc
54-
nvm install node
48+
cd ~
49+
curl -sL https://deb.nodesource.com/setup_16.x -o /tmp/nodesource_setup.sh
50+
sudo bash /tmp/nodesource_setup.sh
51+
sudo apt install nodejs
5552
5653
- name: Install aarch64-linux-gnu
5754
if: ${{ matrix.platform == 'linux-arm64' }}

0 commit comments

Comments
 (0)