From f25be25d5e8382a9d8e2fd12ef2ae9e3d6aad46c Mon Sep 17 00:00:00 2001 From: Peter Beverloo Date: Wed, 23 Oct 2024 22:15:57 +0100 Subject: [PATCH] build fix: Force npm installation until MUI updates their peer dependencies --- .github/workflows/deploy-staging.yml | 2 +- .github/workflows/deploy.yml | 2 +- Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 8a7ef1d8..34167cae 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -19,7 +19,7 @@ jobs: cd ~/volunteer-manager-staging git reset --hard git pull --rebase - npm install + npm install --force npm run-script test npm run-script build-staging docker system prune -f diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index aa8f9735..070d7db6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,7 +19,7 @@ jobs: cd ~/volunteer-manager git reset --hard git pull --rebase - npm install + npm install --force npm run-script test npm run-script build-prod docker system prune -f diff --git a/Dockerfile b/Dockerfile index 0a98a506..085f8361 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ WORKDIR /app # Install dependencies based on the preferred package manager COPY .npmrc package.json package-lock.json* ./ -RUN npm ci +RUN npm ci --force # 2. Rebuild the source code only when needed FROM base AS builder