Skip to content

Commit 0a7122a

Browse files
committed
fix .github/workflows/mcp.yml
1 parent 6446a32 commit 0a7122a

File tree

1 file changed

+38
-12
lines changed

1 file changed

+38
-12
lines changed

.github/workflows/mcp.yml

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,29 @@ jobs:
2828
steps:
2929
- uses: actions/checkout@v4
3030

31-
- uses: pnpm/action-setup@v2
32-
with:
33-
version: 8
34-
3531
- name: Setup Node.js
3632
uses: actions/setup-node@v4
3733
with:
3834
node-version: ${{ matrix.node-version }}
39-
cache: 'pnpm'
40-
cache-dependency-path: renamify-mcp/pnpm-lock.yaml
35+
36+
- uses: pnpm/action-setup@v3
37+
with:
38+
version: 8
39+
run_install: false
40+
41+
- name: Get pnpm store directory
42+
id: pnpm-cache
43+
shell: bash
44+
run: |
45+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
46+
47+
- uses: actions/cache@v3
48+
name: Setup pnpm cache
49+
with:
50+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
51+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('renamify-mcp/pnpm-lock.yaml') }}
52+
restore-keys: |
53+
${{ runner.os }}-pnpm-store-
4154
4255
- name: Install dependencies
4356
run: pnpm install --frozen-lockfile
@@ -61,16 +74,29 @@ jobs:
6174
steps:
6275
- uses: actions/checkout@v4
6376

64-
- uses: pnpm/action-setup@v2
65-
with:
66-
version: 8
67-
6877
- name: Setup Node.js
6978
uses: actions/setup-node@v4
7079
with:
7180
node-version: 20.x
72-
cache: 'pnpm'
73-
cache-dependency-path: renamify-mcp/pnpm-lock.yaml
81+
82+
- uses: pnpm/action-setup@v3
83+
with:
84+
version: 8
85+
run_install: false
86+
87+
- name: Get pnpm store directory
88+
id: pnpm-cache
89+
shell: bash
90+
run: |
91+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
92+
93+
- uses: actions/cache@v3
94+
name: Setup pnpm cache
95+
with:
96+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
97+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('renamify-mcp/pnpm-lock.yaml') }}
98+
restore-keys: |
99+
${{ runner.os }}-pnpm-store-
74100
75101
- name: Install dependencies
76102
run: pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)