-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (61 loc) · 1.74 KB
/
Copy pathmcp-release.yml
File metadata and controls
71 lines (61 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: MCP CLI Release
on:
push:
branches:
- main
paths:
- "src/cli/**"
- "src/plutoManagerTypes.ts"
- "src/plutoManager.ts"
- "src/mcp-server-http.ts"
- "packages/advanced-pluto-mcp/**"
workflow_dispatch:
inputs:
dry_run:
description: "Run in dry-run mode"
required: false
type: boolean
default: false
concurrency:
group: semantic-release
cancel-in-progress: false
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
jobs:
mcp-ci:
name: Run MCP CI
uses: ./.github/workflows/mcp-ci.yml
mcp-release:
name: MCP Semantic Release
runs-on: ubuntu-latest
needs: mcp-ci
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }}
persist-credentials: true
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: "22"
cache: "npm"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Build CLI production bundle
run: npm run build:production --workspace=packages/advanced-pluto-mcp
- name: Run semantic-release for MCP CLI
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
if [ "${{ github.event.inputs.dry_run }}" = "true" ]; then
npx semantic-release --extends ./packages/advanced-pluto-mcp/.releaserc.json --dry-run
else
npx semantic-release --extends ./packages/advanced-pluto-mcp/.releaserc.json
fi