Skip to content

Commit b2e295b

Browse files
committed
ci : Ci 명령어에 캐시 설정 추가
1 parent b6ab8e3 commit b2e295b

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
pull_request:
5-
branches: [develop, main] # PR이 develop이나 main으로 갈 때만 동작
5+
branches: [develop, main]
66

77
jobs:
88
build:
@@ -16,16 +16,28 @@ jobs:
1616
uses: actions/setup-node@v3
1717
with:
1818
node-version: 18
19-
cache: yarn
2019

2120
- name: Enable Corepack
2221
run: corepack enable
2322

24-
- name: Prepare Yarn version
23+
- name: Prepare Yarn 4
2524
run: corepack prepare [email protected] --activate
2625

26+
# Optional: 캐시 수동 설정
27+
- name: Cache Yarn
28+
uses: actions/cache@v3
29+
with:
30+
path: |
31+
.yarn/cache
32+
.yarn/unplugged
33+
.yarn/install-state.gz
34+
.pnp.*
35+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
36+
restore-keys: |
37+
${{ runner.os }}-yarn-
38+
2739
- name: Install dependencies
28-
run: yarn install --frozen-lockfile
40+
run: yarn install --immutable
2941

3042
- name: Type check
3143
run: yarn tsc --noEmit

0 commit comments

Comments
 (0)