From 93f4986204a3f2fffbbdc5b4428cad2d775e419d Mon Sep 17 00:00:00 2001 From: Florian Wathling Date: Sat, 9 May 2026 17:30:57 +0200 Subject: [PATCH] Drop npm cache + use 'npm install' (no lock file in template) setup-node with cache: 'npm' fails because the template ships without package-lock.json. README documents the path to switch to 'npm ci' once the downstream repo has a lock file. --- .gitea/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 694882b..8b42658 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -16,10 +16,12 @@ jobs: uses: actions/setup-node@v4 with: node-version: '22' - cache: 'npm' + # No `cache: 'npm'` here — the template ships without a lock file. + # Once your downstream repo has a package-lock.json from `npm install`, + # add `cache: 'npm'` back and switch the install step to `npm ci`. - - name: Install - run: npm ci + - name: Install (use ci once lock file exists) + run: npm install - name: Prisma generate (validates schema) run: npx prisma generate