Skip to content

Commit 985f2b0

Browse files
committed
Fix: Use default pnpm store path instead of pnpm store path command
1 parent 93e5626 commit 985f2b0

1 file changed

Lines changed: 6 additions & 36 deletions

File tree

‎.github/workflows/ci-cd.yml‎

Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,10 @@ jobs:
3636
with:
3737
node-version: ${{ env.NODE_VERSION }}
3838

39-
- name: Get pnpm store directory
40-
shell: bash
41-
run: |
42-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
43-
4439
- name: Setup pnpm cache
4540
uses: actions/cache@v4
4641
with:
47-
path: ${{ env.STORE_PATH }}
42+
path: ~/.pnpm-store
4843
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }}
4944
restore-keys: |
5045
${{ runner.os }}-pnpm-store-
@@ -138,15 +133,10 @@ jobs:
138133
with:
139134
node-version: ${{ env.NODE_VERSION }}
140135

141-
- name: Get pnpm store directory
142-
shell: bash
143-
run: |
144-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
145-
146136
- name: Setup pnpm cache
147137
uses: actions/cache@v4
148138
with:
149-
path: ${{ env.STORE_PATH }}
139+
path: ~/.pnpm-store
150140
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }}
151141
restore-keys: |
152142
${{ runner.os }}-pnpm-store-
@@ -185,15 +175,10 @@ jobs:
185175
with:
186176
node-version: ${{ env.NODE_VERSION }}
187177

188-
- name: Get pnpm store directory
189-
shell: bash
190-
run: |
191-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
192-
193178
- name: Setup pnpm cache
194179
uses: actions/cache@v4
195180
with:
196-
path: ${{ env.STORE_PATH }}
181+
path: ~/.pnpm-store
197182
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }}
198183
restore-keys: |
199184
${{ runner.os }}-pnpm-store-
@@ -279,15 +264,10 @@ jobs:
279264
with:
280265
node-version: ${{ env.NODE_VERSION }}
281266

282-
- name: Get pnpm store directory
283-
shell: bash
284-
run: |
285-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
286-
287267
- name: Setup pnpm cache
288268
uses: actions/cache@v4
289269
with:
290-
path: ${{ env.STORE_PATH }}
270+
path: ~/.pnpm-store
291271
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }}
292272
restore-keys: |
293273
${{ runner.os }}-pnpm-store-
@@ -323,15 +303,10 @@ jobs:
323303
with:
324304
node-version: ${{ env.NODE_VERSION }}
325305

326-
- name: Get pnpm store directory
327-
shell: bash
328-
run: |
329-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
330-
331306
- name: Setup pnpm cache
332307
uses: actions/cache@v4
333308
with:
334-
path: ${{ env.STORE_PATH }}
309+
path: ~/.pnpm-store
335310
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }}
336311
restore-keys: |
337312
${{ runner.os }}-pnpm-store-
@@ -521,15 +496,10 @@ jobs:
521496
with:
522497
node-version: ${{ env.NODE_VERSION }}
523498

524-
- name: Get pnpm store directory
525-
shell: bash
526-
run: |
527-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
528-
529499
- name: Setup pnpm cache
530500
uses: actions/cache@v4
531501
with:
532-
path: ${{ env.STORE_PATH }}
502+
path: ~/.pnpm-store
533503
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }}
534504
restore-keys: |
535505
${{ runner.os }}-pnpm-store-

0 commit comments

Comments
 (0)