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:
forbes
2026-01-26 12:32:50 -06:00
parent 90db886359
commit 69689f11be
2 changed files with 2 additions and 4 deletions

View File

@@ -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

View File

@@ -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