Use standalone node binary instead of apt package
Avoids dependency conflicts on the runner by downloading node directly from nodejs.org instead of using nodesource apt repo.
This commit is contained in:
@@ -28,8 +28,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
if ! command -v node &> /dev/null; then
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
|
||||
sudo apt-get install -y nodejs
|
||||
curl -fsSL https://nodejs.org/dist/v20.18.0/node-v20.18.0-linux-x64.tar.xz | sudo tar -xJ -C /usr/local --strip-components=1
|
||||
fi
|
||||
node --version
|
||||
|
||||
|
||||
@@ -33,8 +33,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
if ! command -v node &> /dev/null; then
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
|
||||
sudo apt-get install -y nodejs
|
||||
curl -fsSL https://nodejs.org/dist/v20.18.0/node-v20.18.0-linux-x64.tar.xz | sudo tar -xJ -C /usr/local --strip-components=1
|
||||
fi
|
||||
node --version
|
||||
|
||||
|
||||
Reference in New Issue
Block a user