mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-11-30 22:45:46 +01:00
added handling in case of desynced package.json package-lock.json
This commit is contained in:
5
.github/workflows/docker.yml
vendored
5
.github/workflows/docker.yml
vendored
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user