File tree Expand file tree Collapse file tree 1 file changed +26
-6
lines changed Expand file tree Collapse file tree 1 file changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,33 @@ jobs:
1212 - name : Checkout
1313 uses : actions/checkout@v4
1414
15- - uses : pnpm/action-setup@v4
15+ - name : Setup pnpm
16+ uses : pnpm/action-setup@v4
17+
18+ - name : Use Node.js
19+ 1620 with :
17- version : 9
18- - name : Setup Node
19- uses : actions/setup-node@v4
20- with :
21- node-version : ' 20.18.2'
21+ registry-url : ' https://registry.npmjs.org'
22+ node-version : 20.x
23+ cache : ' pnpm'
24+
25+ - name : Clear hosted tool-cache for corepack
26+ # See: [actions/setup-node/issues/1222](https://github.com/actions/setup-node/issues/1222#issuecomment-2673608477)
27+ if : runner.os == 'Windows'
28+ run : Remove-Item -Recurse -Force (Get-Command corepack.cmd).Path
29+ shell : pwsh
30+
31+ - name : Install Corepack
32+ # See: [actions/setup-node/issues/1222](https://github.com/actions/setup-node/issues/1222)
33+ run : |
34+ npm i -g --force corepack
35+ shell : bash
36+
37+ - name : Enable Corepack
38+ run : |
39+ corepack enable
40+ pnpm -v
41+ shell : bash
2242
2343 - name : Resolve Dependencies
2444 run : |
You can’t perform that action at this time.
0 commit comments