File tree Expand file tree Collapse file tree 1 file changed +30
-3
lines changed
Expand file tree Collapse file tree 1 file changed +30
-3
lines changed Original file line number Diff line number Diff line change 3434 - uses : actions/setup-node@v3
3535 with :
3636 node-version : lts/*
37- cache : pnpm
37+ - id : pnpm-cache-path
38+ run : |
39+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
40+ - name : pnpm cache
41+ uses : actions/cache@v3
42+ with :
43+ path : ${{ steps.pnpm-cache-path.outputs.STORE_PATH }}
44+ key : lint-${{ runner.os }}-${{ steps.setup-node.outputs.node-version }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
45+ restore-keys : |
46+ lint-${{ runner.os }}-${{ steps.setup-node.outputs.node-version }}-pnpm-store-
3847 - name : Install dependencies
3948 run : pnpm install
4049 -
uses :
pre-commit/[email protected] 5564 - uses : actions/setup-node@v3
5665 with :
5766 node-version : ${{ matrix.node-version }}
58- cache : pnpm
67+ - id : pnpm-cache-path
68+ run : |
69+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
70+ - name : pnpm cache
71+ uses : actions/cache@v3
72+ with :
73+ path : ${{ steps.pnpm-cache-path.outputs.STORE_PATH }}
74+ key : test-${{ runner.os }}-${{ steps.setup-node.outputs.node-version }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
75+ restore-keys : |
76+ test-${{ runner.os }}-${{ steps.setup-node.outputs.node-version }}-pnpm-store-
5977 - name : Install dependencies
6078 run : pnpm install
6179 - name : Build
@@ -97,7 +115,16 @@ jobs:
97115 - uses : actions/setup-node@v3
98116 with :
99117 node-version : lts/*
100- cache : pnpm
118+ - id : pnpm-cache-path
119+ run : |
120+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
121+ - name : pnpm cache
122+ uses : actions/cache@v3
123+ with :
124+ path : ${{ steps.pnpm-cache-path.outputs.STORE_PATH }}
125+ key : release-${{ runner.os }}-${{ steps.setup-node.outputs.node-version }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
126+ restore-keys : |
127+ release-${{ runner.os }}-${{ steps.setup-node.outputs.node-version }}-pnpm-store-
101128 - name : Install dependencies
102129 run : pnpm install
103130 - name : Build
You can’t perform that action at this time.
0 commit comments