From 2bf410c825f6c49548e39c5cd2ef4bcbc8bf0867 Mon Sep 17 00:00:00 2001 From: TaskPool Date: Thu, 6 Aug 2026 15:40:56 +0800 Subject: [PATCH] fix(ci): install Node.js directly in runner container with apt-get --- .gitea/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 1261098..c5e8851 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -17,9 +17,16 @@ env: jobs: build-and-push: runs-on: ubuntu-latest - container: node:22-bookworm if: github.event_name == 'push' && github.ref == 'refs/heads/main' steps: + - name: Install Node.js + run: | + apt-get update + apt-get install -y curl + curl -fsSL https://deb.nodesource.com/setup_22.x | bash - + apt-get install -y nodejs + node --version + - name: Checkout uses: actions/checkout@v4