mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 12:41:04 +00:00
fix: add lockfile corruption handling to CI/CD and Dockerfiles
This commit is contained in:
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user