Skip to content

Commit 75ac3cf

Browse files
authoredMar 4, 2024
feat(ci): cache release dependencies (#5834)
1 parent eb5cd50 commit 75ac3cf

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed
 

‎.github/workflows/release.yml

+22-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,28 @@ jobs:
3535
uses: pnpm/action-setup@v3
3636
with:
3737
version: 8
38-
run_install: true
38+
run_install: false
39+
40+
- name: Get pnpm store directory
41+
id: pnpm-cache
42+
shell: bash
43+
run: |
44+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
45+
46+
- name: Cache dependencies
47+
uses: actions/cache@v4
48+
env:
49+
cache-name: cache-node-modules
50+
with:
51+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
52+
key: ${{ runner.os }}-pnpm-store-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
53+
restore-keys: |
54+
v1-${{ runner.os }}-pnpm-store-${{ env.cache-name }}-
55+
v1-${{ runner.os }}-pnpm-store-
56+
v1-${{ runner.os }}-
57+
58+
- name: Install dependencies
59+
run: pnpm install
3960

4061
- name: Pre-flight
4162
run: |

0 commit comments

Comments
 (0)
Please sign in to comment.