Skip to content

Commit 45daad8

Browse files
committed
chore: corepack enable을 setup-node 이전으로 이동
- yarn berry 버전 불일치 오류 수정 - corepack이 먼저 활성화되어야 setup-node의 cache가 올바르게 동작
1 parent cbf52f2 commit 45daad8

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/front-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13+
- run: corepack enable
14+
# package.json의 packageManager 버전(yarn berry)으로 자동 전환
15+
1316
- uses: actions/setup-node@v4
1417
with:
1518
node-version: 22
1619
cache: yarn
1720

18-
- run: corepack enable
19-
# package.json의 packageManager 버전(yarn berry)으로 자동 전환
20-
2121
- run: yarn install --immutable
2222
- run: yarn build
2323
# dist/ 폴더 생성

.github/workflows/pr-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
- uses: actions/checkout@v4
1414
# 레포 코드를 서버에 내려받기
1515

16+
- run: corepack enable
17+
# package.json의 packageManager 버전(yarn berry)으로 자동 전환
18+
1619
- uses: actions/setup-node@v4
1720
with:
1821
node-version: 22
1922
cache: yarn
2023
# Node.js 22 설치, yarn 캐시 활성화 (두 번째 실행부터 빠름)
2124

22-
- run: corepack enable
23-
# package.json의 packageManager 버전(yarn berry)으로 자동 전환
24-
2525
- run: yarn install --immutable
2626
# yarn.lock 기준으로 설치, lock 파일 변경 불가 (CI 안전장치)
2727

0 commit comments

Comments
 (0)