From cdbf003327cd19ad07e38b53d6430f5e030479a0 Mon Sep 17 00:00:00 2001 From: hamed musallam Date: Mon, 28 Apr 2025 12:52:33 +0200 Subject: [PATCH 1/2] chore(docker): ignore package-lock.json when copy files --- .dockerignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.dockerignore b/.dockerignore index 49512c6..0ae5001 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,6 @@ node_modules build +package-lock.json .dockerignore Dockerfile Dockerfile.prod From 08ae9393a165fb9db14f6b93b3ff959eecb50f48 Mon Sep 17 00:00:00 2001 From: hamed musallam Date: Mon, 28 Apr 2025 13:08:44 +0200 Subject: [PATCH 2/2] chore(workflow): update production deployment workflow --- .github/workflows/prod-build.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prod-build.yml b/.github/workflows/prod-build.yml index c726e91..a7bae6d 100644 --- a/.github/workflows/prod-build.yml +++ b/.github/workflows/prod-build.yml @@ -64,14 +64,21 @@ jobs: password: ${{ env.DOCKER_HUB_PASSWORD }} # Build npm for release - - name: Build npm + - name: Clean and build npm run: |- + echo "Cleaning node_modules and lock file to avoid native module issues..." + rm -rf node_modules package-lock.json + npm cache clean --force + + echo "Installing dependencies..." npm install - # Build for main distribution + + echo "Building for main distribution..." VITE_BUILD_OUT_DIR=dist npm run build - # Build for specific version + + echo "Building for release version: ${{ steps.fetch-latest-release.outputs.tag_name }}" VITE_BUILD_OUT_DIR=releases/${{ steps.fetch-latest-release.outputs.tag_name }} npm run build - + # Commit - name: Commit to repo uses: EndBug/add-and-commit@v9.1.4