From 7961086e48de07f9cc1ab81aeef9b30d9e96e73d Mon Sep 17 00:00:00 2001 From: Soap Date: Tue, 12 Nov 2024 23:11:49 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20yarn=20=EC=BA=90=EC=8B=B1=20=EB=A1=9C?= =?UTF-8?q?=EC=A7=81=20=EC=82=AD=EC=A0=9C=20#112?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 여러 PR 에서는 더 느려짐 yarn install --frozen-lockfile 사용 --- .github/workflows/CI_PIPELINE.yml | 11 +---------- .github/workflows/deploy-fe-preview.yml | 2 +- .github/workflows/deploy-fe.yml | 2 +- backend/Dockerfile | 2 +- 4 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/CI_PIPELINE.yml b/.github/workflows/CI_PIPELINE.yml index 9b17517b..aa5e264a 100644 --- a/.github/workflows/CI_PIPELINE.yml +++ b/.github/workflows/CI_PIPELINE.yml @@ -42,18 +42,9 @@ jobs: with: node-version: '20' - - name: Cache dependencies for ${{ matrix.project }} - if: env.changed == 'true' - uses: actions/cache@v3 - with: - path: ${{ matrix.project }}/node_modules - key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}/yarn.lock', matrix.project)) }} - restore-keys: | - ${{ runner.os }}-yarn- - - name: Install Dependencies for ${{ matrix.project }} if: env.changed == 'true' - run: yarn install + run: yarn install --frozen-lockfile # yarn.lock 을 기준으로 설치하며, 의존성 재해석 방지 working-directory: ${{ matrix.project }} - name: Lint ${{ matrix.project }} diff --git a/.github/workflows/deploy-fe-preview.yml b/.github/workflows/deploy-fe-preview.yml index 55bbf775..233ece8f 100644 --- a/.github/workflows/deploy-fe-preview.yml +++ b/.github/workflows/deploy-fe-preview.yml @@ -33,7 +33,7 @@ jobs: VITE_GOOGLE_MAPS_ID: ${{ secrets.VITE_GOOGLE_MAPS_ID }} run: | cd ${{ github.workspace }}/frontend - yarn install + yarn install --frozen-lockfile yarn build - name: Deploy to Nginx Server diff --git a/.github/workflows/deploy-fe.yml b/.github/workflows/deploy-fe.yml index a4bb2df9..fbcbce30 100644 --- a/.github/workflows/deploy-fe.yml +++ b/.github/workflows/deploy-fe.yml @@ -21,7 +21,7 @@ jobs: VITE_GOOGLE_MAPS_ID: ${{ secrets.VITE_GOOGLE_MAPS_ID }} run: | cd ${{ github.workspace }}/frontend - yarn install + yarn install --frozen-lockfile yarn build - name: Deploy to Nginx Server diff --git a/backend/Dockerfile b/backend/Dockerfile index 8abe0eae..b806da31 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /build COPY package.json . COPY yarn.lock . -RUN yarn install +RUN yarn install --frozen-lockfile COPY . . RUN yarn build