Revert "fix: add lockfile corruption handling to CI/CD and Dockertfiles"

This reverts commit 560aff222b.
This commit is contained in:
Stephanos A
2026-06-16 22:25:26 +03:00
parent 560aff222b
commit 865105eb6a
5 changed files with 4 additions and 12 deletions

View File

@@ -142,14 +142,6 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: ./scripts/deploy/create-npmrc.sh
- name: Fix lockfile if needed
run: |
set -euo pipefail
if ! pnpm install --frozen-lockfile 2>/dev/null; then
echo "Lockfile corrupted, regenerating..."
pnpm install --no-frozen-lockfile
fi
- name: Build ${{ matrix.service }}
run: |
set -euo pipefail

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 --no-frozen-lockfile || pnpm install --no-frozen-lockfile
pnpm install --frozen-lockfile
FROM base AS builder
COPY --from=installer /app/ .

View File

@@ -16,7 +16,7 @@ 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 \
--mount=type=cache,id=pnpm,target=/pnpm/store \
pnpm install --frozen-lockfile || pnpm install --no-frozen-lockfile
pnpm install --frozen-lockfile
FROM base AS builder
COPY --from=installer /app/ .

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 --no-frozen-lockfile
pnpm install --frozen-lockfile
FROM base AS builder
COPY --from=installer /app/ .

View File

@@ -20,7 +20,7 @@ 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 \
--mount=type=cache,id=pnpm,target=/pnpm/store \
pnpm install --frozen-lockfile || pnpm install --no-frozen-lockfile
pnpm install --frozen-lockfile
FROM base AS builder
ARG TURBO_FILTER