Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Commit 1d14fcb

Browse files
Manually enable yarn global cache
1 parent 77c9642 commit 1d14fcb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
- name: Fetch submodule tags
4949
working-directory: compiler
5050
run: git fetch --tags https://github.com/google/closure-compiler.git
51+
- name: Enable yarn caching
52+
run: yarn config set enableGlobalCache true
5153
- name: Use Node.js ${{ env.NODE_VERSION }}
5254
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # 4.4.0
5355
with:
@@ -130,6 +132,8 @@ jobs:
130132
CC=musl-gcc ./configure --prefix=$MUSL_HOME --static
131133
make && make install
132134
popd
135+
- name: Enable yarn caching
136+
run: yarn config set enableGlobalCache true
133137
- name: Use Node.js ${{ env.NODE_VERSION }}
134138
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # 4.4.0
135139
with:
@@ -188,6 +192,8 @@ jobs:
188192
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
189193
with:
190194
ref: ${{ inputs.release-tag || '' }}
195+
- name: Enable yarn caching
196+
run: yarn config set enableGlobalCache true
191197
- name: Use Node.js ${{ env.NODE_VERSION }}
192198
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # 4.4.0
193199
with:
@@ -243,6 +249,8 @@ jobs:
243249
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
244250
with:
245251
ref: ${{ inputs.release-tag || '' }}
252+
- name: Enable yarn caching
253+
run: yarn config set enableGlobalCache true
246254
- name: Use Node.js ${{ env.NODE_VERSION }}
247255
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # 4.4.0
248256
with:
@@ -298,6 +306,8 @@ jobs:
298306
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
299307
with:
300308
ref: ${{ inputs.release-tag || '' }}
309+
- name: Enable yarn caching
310+
run: yarn config set enableGlobalCache true
301311
- name: Use Node.js ${{ env.NODE_VERSION }}
302312
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # 4.4.0
303313
with:
@@ -362,6 +372,8 @@ jobs:
362372
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
363373
with:
364374
ref: ${{ inputs.release-tag || '' }}
375+
- name: Enable yarn caching
376+
run: yarn config set enableGlobalCache true
365377
- name: Use Node.js ${{ env.NODE_VERSION }}
366378
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # 4.4.0
367379
with:

0 commit comments

Comments
 (0)