Skip to content

Commit 8e16c0f

Browse files
committed
Remove dependency cache from publish workflow
See: https://bsky.app/profile/sebastienlorber.com/post/3mlnddggv6c2f
1 parent 45595c5 commit 8e16c0f

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,8 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@v6
2121

22-
- name: Cache Yarn cache
23-
uses: actions/cache@v5
24-
env:
25-
cache-name: yarn-cache
26-
with:
27-
path: ~/.yarn/berry/cache
28-
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
29-
restore-keys: |
30-
${{ runner.os }}-${{ env.cache-name }}
22+
# ⚠️ Do not cache dependencies in publish workflows
23+
# Restoring package-manager cache here increases the risk of a compromised release
3124

3225
- name: Use Node.js
3326
uses: actions/setup-node@v6

0 commit comments

Comments
 (0)