Skip to content

Commit

Permalink
feat: yarn 캐싱 로직 삭제 #112
Browse files Browse the repository at this point in the history
여러 PR 에서는 더 느려짐
yarn install --frozen-lockfile 사용
  • Loading branch information
Miensoap committed Nov 13, 2024
1 parent 22344f8 commit 7961086
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/CI_PIPELINE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-fe-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-fe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ WORKDIR /build
COPY package.json .
COPY yarn.lock .

RUN yarn install
RUN yarn install --frozen-lockfile

COPY . .
RUN yarn build
Expand Down

0 comments on commit 7961086

Please sign in to comment.