Skip to content

Commit 6a27506

Browse files
committed
ci: move checkout step from setup-pnpm to build workflow
1 parent adac8b4 commit 6a27506

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/actions/setup-pnpm/action.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ inputs:
1515
runs:
1616
using: "composite"
1717
steps:
18-
- name: Checkout
19-
uses: actions/checkout@v4
20-
with:
21-
fetch-depth: 0
22-
2318
- name: Install Node
2419
uses: actions/setup-node@v4
2520
with:

.github/workflows/build.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ jobs:
1212
if: github.repository == 'my-mcp-hub/mcp-kit'
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: ./.github/actions/setup-pnpm
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Setup PNPM
21+
uses: ./.github/actions/setup-pnpm
1622
with:
1723
node-version: 22
1824

@@ -29,7 +35,13 @@ jobs:
2935
if: github.repository == 'my-mcp-hub/mcp-kit'
3036
runs-on: ubuntu-latest
3137
steps:
32-
- uses: ./.github/actions/setup-pnpm
38+
- name: Checkout
39+
uses: actions/checkout@v4
40+
with:
41+
fetch-depth: 0
42+
43+
- name: Setup PNPM
44+
uses: ./.github/actions/setup-pnpm
3345
with:
3446
node-version: 22
3547

0 commit comments

Comments
 (0)