From 601a2db3cf37960657fbb9423674c4605bdcfbc9 Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Sun, 1 Mar 2026 17:28:02 -0800 Subject: [PATCH] Move Node.js install before checkout in Linux build The Gitea Linux runner also lacks Node.js, causing actions/checkout@v4 (a JS action) to fail with "node: executable file not found in PATH". Same fix as the macOS job: install Node.js via shell before any JS-based actions run. Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/build-app.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/build-app.yml b/.gitea/workflows/build-app.yml index 275b5b6..3739175 100644 --- a/.gitea/workflows/build-app.yml +++ b/.gitea/workflows/build-app.yml @@ -19,9 +19,19 @@ env: jobs: build-linux: runs-on: ubuntu-latest - env: - PATH: /home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin steps: + - name: Install Node.js + run: | + if command -v node >/dev/null 2>&1; then + echo "Node.js already installed: $(node --version)" + else + echo "Installing Node.js 22..." + curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - + sudo apt-get install -y nodejs + fi + node --version + npm --version + - name: Checkout uses: actions/checkout@v4 with: @@ -75,18 +85,6 @@ jobs: rustc --version cargo --version - - name: Install Node.js - run: | - if command -v node >/dev/null 2>&1; then - echo "Node.js already installed: $(node --version)" - else - echo "Installing Node.js 22..." - curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - - sudo apt-get install -y nodejs - fi - node --version - npm --version - - name: Install frontend dependencies working-directory: ./app run: npm ci