Skip to content

Commit 0a4483e

Browse files
committed
chore(ci): add proper yarn caching and optimize release workflow performance
1 parent c3c93b9 commit 0a4483e

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,20 @@ jobs:
2626
uses: actions/setup-node@v4
2727
with:
2828
node-version: 20
29-
cache: yarn
29+
30+
# ------------------------------
31+
# Yarn Dependency Cache
32+
# ------------------------------
33+
- name: Cache Yarn dependencies
34+
uses: actions/cache@v4
35+
with:
36+
path: |
37+
~/.cache/yarn
38+
node_modules
39+
libs/**/node_modules
40+
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
41+
restore-keys: |
42+
yarn-${{ runner.os }}-
3043
3144
# ------------------------------
3245
# Install Dependencies
@@ -53,7 +66,7 @@ jobs:
5366
run: yarn build
5467

5568
# ------------------------------
56-
# Install git-cliff (LATEST release, correct filter)
69+
# Install git-cliff (correct)
5770
# ------------------------------
5871
- name: Install git-cliff
5972
run: |

0 commit comments

Comments
 (0)