File tree Expand file tree Collapse file tree 1 file changed +16
-11
lines changed
.github/actions/setup-pnpm Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,25 @@ runs:
23
23
uses : actions/setup-node@v4
24
24
with :
25
25
node-version : ${{ inputs.node-version }}
26
- cache : ' pnpm'
26
+ # cache: 'pnpm'
27
+ # cache-dependency-path: '**/pnpm-lock.yaml'
27
28
28
- - name : Install PNPM
29
- run : npm i pnpm@latest -g
30
- shell : bash
29
+ - name : Install pnpm
30
+ uses : pnpm/action-setup@v4
31
31
32
- - name : Setup npmrc
33
- run : echo "//registry.npmjs.org/:_authToken=${{ inputs.npm-token }}" > .npmrc
32
+ - name : Get pnpm store directory
34
33
shell : bash
34
+ run : |
35
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
35
36
36
- - name : Setup pnpm config
37
- run : pnpm config set store-dir $PNPM_CACHE_FOLDER
38
- shell : bash
37
+ - name : Setup pnpm cache
38
+ uses : actions/cache@v4
39
+ with :
40
+ path : ${{ env.STORE_PATH }}
41
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
42
+ restore-keys : |
43
+ ${{ runner.os }}-pnpm-store-
39
44
40
- - name : Install Package
41
- run : pnpm install
45
+ - name : Install dependencies
42
46
shell : bash
47
+ run : pnpm install
You can’t perform that action at this time.
0 commit comments