Skip to content

Commit d374546

Browse files
Miensoapkoomchang
authored andcommitted
config: yarn 캐싱 적용 #48
테스트
1 parent 79a474f commit d374546

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/CI_PIPELINE.yml

+15
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,21 @@ jobs:
3636
echo "changed=false" >> $GITHUB_ENV
3737
fi
3838
39+
- name: Set up Node.js
40+
if: env.changed == 'true'
41+
uses: actions/setup-node@v3
42+
with:
43+
node-version: '20'
44+
45+
- name: Cache dependencies for ${{ matrix.project }}
46+
if: env.changed == 'true'
47+
uses: actions/cache@v3
48+
with:
49+
path: ${{ matrix.project }}/node_modules
50+
key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}/yarn.lock', matrix.project)) }}
51+
restore-keys: |
52+
${{ runner.os }}-yarn-
53+
3954
- name: Install Dependencies for ${{ matrix.project }}
4055
if: env.changed == 'true'
4156
run: yarn install

0 commit comments

Comments
 (0)