From 99829f95fd1e570e40fe7a862389bab7fd66a562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=AE=AE=E0=AE=A9=E0=AF=8B=E0=AE=9C=E0=AF=8D=E0=AE=95?= =?UTF-8?q?=E0=AF=81=E0=AE=AE=E0=AE=BE=E0=AE=B0=E0=AF=8D=20=E0=AE=AA?= =?UTF-8?q?=E0=AE=B4=E0=AE=A9=E0=AE=BF=E0=AE=9A=E0=AF=8D=E0=AE=9A=E0=AE=BE?= =?UTF-8?q?=E0=AE=AE=E0=AE=BF?= Date: Wed, 24 Apr 2024 18:54:48 +0530 Subject: [PATCH] Applied npm patch for build errors (#1326) * npm patch https://github.com/npm/cli/issues/7231#issuecomment-2062032218 * Delete huge unnecessary tools folder --- .github/workflows/ghcr.yml | 3 +++ containers/app/Dockerfile | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ghcr.yml b/.github/workflows/ghcr.yml index e6187d6693ef..2aa3f968910c 100644 --- a/.github/workflows/ghcr.yml +++ b/.github/workflows/ghcr.yml @@ -30,6 +30,9 @@ jobs: - name: Log-in to ghcr.io run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + + - name: Delete huge unnecessary tools folder + run: rm -rf /opt/hostedtoolcache - name: Build and push ${{ matrix.image }} run: | diff --git a/containers/app/Dockerfile b/containers/app/Dockerfile index 76b49c12ae31..e533099348b1 100644 --- a/containers/app/Dockerfile +++ b/containers/app/Dockerfile @@ -3,6 +3,7 @@ FROM node:21.7.2-bookworm-slim as frontend-builder WORKDIR /app COPY ./frontend/package.json frontend/package-lock.json ./ +RUN npm install -g npm@10.5.1 RUN npm install COPY ./frontend ./