added handling in case of desynced package.json package-lock.json

This commit is contained in:
2025-10-21 22:42:06 +02:00
parent 364fb41f0e
commit b3a3a5680e
3 changed files with 552 additions and 2 deletions

View File

@@ -70,7 +70,9 @@ jobs:
- name: Install backend dependencies
working-directory: ./backend
run: npm ci
run: |
# Try npm ci first, if it fails use npm install
npm ci || (echo "package-lock.json out of sync, using npm install..." && npm install)
- name: Run TypeScript check
working-directory: ./backend
@@ -159,4 +161,3 @@ jobs:
echo "📦 Image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
echo "🏷️ Tags: ${{ steps.meta.outputs.tags }}"
echo "🚀 New version: ${{ needs.set-tag.outputs.tag_name }}"