File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,19 +31,26 @@ jobs:
3131 id : node-setup
3232 with :
3333 node-version : ' 20'
34- cache : ' pnpm'
35-
36- - name : Install PNPM
34+
35+ - name : Setup pnpm
3736 uses : pnpm/action-setup@v3
38- id : pnpm-setup
3937 with :
40- version : 8
41- run_install : true
42-
43- - name : Setup PNPM
38+ version : 8
39+ run_install : false
40+
41+ - name : Get pnpm store directory
42+ id : pnpm-cache
43+ shell : bash
4444 run : |
45- echo "PNPM_HOME=$HOME/.local/share/pnpm" >> $GITHUB_ENV
46- echo "$HOME/.local/share/pnpm" >> $GITHUB_PATH
45+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
46+
47+ - name : Setup pnpm cache
48+ uses : actions/cache@v4
49+ with :
50+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
51+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
52+ restore-keys : |
53+ ${{ runner.os }}-pnpm-store-
4754
4855 - name : Install dependencies
4956 working-directory : ./fe
Original file line number Diff line number Diff line change 2222 - name : Setup Node.js
2323 uses : actions/setup-node@v4
2424 with :
25- node-version : ' 18 '
25+ node-version : ' 20 '
2626
2727 - name : Setup pnpm
2828 uses : pnpm/action-setup@v3
You can’t perform that action at this time.
0 commit comments