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

@@ -142,6 +142,14 @@ 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