Skip to content

Commit bc6967c

Browse files
vsilentCopilot
andcommitted
ci: fallback to npm install when web lockfile is missing
Use npm ci only when web/package-lock.json exists to avoid EUSAGE in CI. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ad49047 commit bc6967c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/docker.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ jobs:
4242
- name: Build frontend
4343
working-directory: ./web
4444
run: |
45-
npm ci
45+
if [ -f package-lock.json ]; then
46+
npm ci
47+
else
48+
npm install
49+
fi
4650
npm run build
4751
4852
- name: Package app

0 commit comments

Comments
 (0)