File tree Expand file tree Collapse file tree 1 file changed +24
-13
lines changed
Expand file tree Collapse file tree 1 file changed +24
-13
lines changed Original file line number Diff line number Diff line change 66 build :
77 runs-on : ubuntu-latest
88
9+ strategy :
10+ matrix :
11+ mode : ['normal', 'strict']
12+ node-version : [18.x, 20.x]
13+
914 steps :
10- - uses : actions/checkout@v3
11- - uses : pnpm/action-setup@v2
12- with :
13- version : 7.9.5
14- - uses : actions/setup-node@v3
15- with :
16- node-version : ' 16'
17- cache : ' pnpm'
18- - uses : actions/cache@v3 # cache pnpm packages
15+ - uses : actions/checkout@v4
16+
17+ - name : Install pnpm
18+ uses : pnpm/action-setup@v4
19+
20+ - name : Get pnpm store directory
1921 id : pnpm-cache
22+ run : |
23+ echo "pnpm_cache_dir=$(pnpm store path)" >> "$GITHUB_OUTPUT"
24+
25+ - name : Setup pnpm cache
26+ uses : actions/cache@v4
2027 with :
21- path : |
22- **/node_modules
23- key : ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
28+ path : ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
29+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
2430 restore-keys : |
25- ${{ runner.os }}-pnpm-
31+ ${{ runner.os }}-pnpm-store-
32+
33+ - name : Use Node.js ${{ matrix.node-version }}
34+ uses : actions/setup-node@v4
35+ with :
36+ node-version : ${{ matrix.node-version }}
2637 - name : Pnpm install
2738 if : steps.pnpm-cache.outputs.cache-hit != 'true'
2839 run : pnpm install
You can’t perform that action at this time.
0 commit comments