File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ author: 'leon'
44inputs :
55 node-version :
66 description : ' Version Spec of the version to use. Examples: 20.x, 20.4.0, >=20.0.0'
7- default : ' 20 '
7+ default : ' 22 '
88 cache-key :
99 description : ' A key to use for the cache. sometimes you need to bust the cache'
1010 default : ' 1'
2020 uses : actions/setup-node@v4
2121 with :
2222 node-version : ${{ inputs.node-version }}
23-
24- - name : Get pnpm store directory
25- id : pnpm-cache
26- shell : bash
27- run : echo "PNPM_STORE_PATH=$(pnpm store path)" >> $GITHUB_ENV
28-
29- - uses : actions/cache@v4
30- name : Setup pnpm cache
31- with :
32- path : |
33- ${{ env.PNPM_STORE_PATH }}
34- ~/cache
35- ~/.cache
36- !~/cache/exclude
37- !~/.cache/exclude
38- key : ${{ runner.os }}-${{ inputs.node-version }}-${{ inputs.cache-key }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
39- restore-keys : ${{ runner.os }}-${{ inputs.node-version }}-${{ inputs.cache-key }}-pnpm-
23+ cache : ' pnpm'
4024
4125 - name : Install dependencies
4226 shell : bash
You can’t perform that action at this time.
0 commit comments