ci: run MCP deploy step only
This commit is contained in:
@@ -15,49 +15,8 @@ env:
|
|||||||
MCP_PACKAGE: '@vben/finance-mcp-service'
|
MCP_PACKAGE: '@vben/finance-mcp-service'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-mcp:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: '20'
|
|
||||||
|
|
||||||
- name: Setup pnpm
|
|
||||||
uses: pnpm/action-setup@v2
|
|
||||||
with:
|
|
||||||
version: 9
|
|
||||||
|
|
||||||
- name: Get pnpm store directory
|
|
||||||
id: pnpm-cache
|
|
||||||
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Setup pnpm cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
|
||||||
key: ${{ runner.os }}-mcp-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-mcp-pnpm-
|
|
||||||
|
|
||||||
- name: Install dependencies (MCP only)
|
|
||||||
run: pnpm install --filter ${MCP_PACKAGE}... --frozen-lockfile
|
|
||||||
|
|
||||||
- name: Typecheck MCP service
|
|
||||||
run: pnpm --filter ${MCP_PACKAGE} typecheck
|
|
||||||
|
|
||||||
- name: Build MCP service
|
|
||||||
run: pnpm --filter ${MCP_PACKAGE} build
|
|
||||||
|
|
||||||
deploy-mcp:
|
deploy-mcp:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build-mcp
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy MCP artifacts to server
|
- name: Deploy MCP artifacts to server
|
||||||
|
|||||||
Reference in New Issue
Block a user