Skip to content

Commit caa9871

Browse files
committed
chore: add caching for pnpm store to improve build performance
1 parent 14bd133 commit caa9871

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

booster/.github/actions/php-auto-fix/action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,20 @@ runs:
6666
version: ${{ steps.pnpm-version.outputs.version }}
6767
run_install: false
6868

69+
- name: Get pnpm store directory
70+
id: pnpm-cache
71+
shell: bash
72+
run: |
73+
echo "store=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
74+
75+
- name: Cache pnpm store
76+
uses: actions/cache@v3
77+
with:
78+
path: ${{ steps.pnpm-cache.outputs.store }}
79+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
80+
restore-keys: |
81+
${{ runner.os }}-pnpm-store-
82+
6983
- name: Get Composer Cache Directory
7084
id: composer-cache
7185
shell: bash

0 commit comments

Comments
 (0)