File tree 1 file changed +20
-1
lines changed
.github/actions/setup-node
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 47
47
(steps.node-modules-restore.outputs.cache-hit == 'true') && 'true' || ''
48
48
}}' >> "$GITHUB_ENV"
49
49
50
+ - name : Calculate `PNPM_STORE`
51
+ shell : bash
52
+ run : |
53
+ echo "PNPM_STORE=$(pnpm store path)" >> "$GITHUB_ENV"
54
+
50
55
- name : Setup pnpm
51
56
uses : pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
52
57
with :
56
61
uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
57
62
with :
58
63
node-version : ${{ inputs.node-version }}
59
- cache : ${{ env.CACHE_HIT != 'true' && 'pnpm' || '' }}
64
+
65
+ - name : Cache and restore `pnpm store`
66
+ if : env.CACHE_HIT != 'true'
67
+ uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
68
+ with :
69
+ path : ${{ env.PNPM_STORE }}
70
+ key : |
71
+ pnpm_store-${{
72
+ inputs.os
73
+ }}-${{
74
+ inputs.node-version
75
+ }}-${{
76
+ hashFiles('pnpm-lock.yaml', 'package.json')
77
+ }}
78
+ enableCrossOsArchive : true
60
79
61
80
- name : Install dependencies
62
81
uses : nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
You can’t perform that action at this time.
0 commit comments