fix: add lockfile corruption handling to CI/CD and Dockerfiles

This commit is contained in:
Stephanos A
2026-06-16 21:40:01 +03:00
parent ad83c87e2f
commit 560aff222b
5 changed files with 12 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ FROM base AS installer
COPY --from=pruner /app/out/json/ .
COPY --from=pruner /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
RUN --mount=type=secret,id=npmrc,target=./.npmrc,required=false \
pnpm install --frozen-lockfile
pnpm install --frozen-lockfile || pnpm install --no-frozen-lockfile
FROM base AS builder
COPY --from=installer /app/ .