This repository was archived by the owner on Nov 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 tags :
66 - ' v*'
7+ repository_dispatch :
8+ types :
9+ - release
710
811jobs :
912 release :
@@ -23,16 +26,21 @@ jobs:
2326 - name : Install dependencies
2427 run : npm install
2528
26- - name : Build
27- run : npm run build
28-
2929 - name : Get version from tag
3030 id : get_version
31- run : echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
31+ run : |
32+ if [ "${{ github.event_name }}" = "push" ]; then
33+ echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
34+ else
35+ echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
36+ fi
3237
3338 - name : Update package version
3439 run : npm version ${{ steps.get_version.outputs.version }} --no-git-tag-version
3540
41+ - name : Build
42+ run : npm run build
43+
3644 - name : Publish to NPM
3745 run : npm publish
3846 env :
Original file line number Diff line number Diff line change 1+
Original file line number Diff line number Diff line change 11{
22 "name" : " mcp-cli-manager" ,
3- "version" : " 1.0.6 " ,
3+ "version" : " 1.0.7 " ,
44 "description" : " MCP Server Management Tool - A CLI tool for managing Model Context Protocol servers" ,
55 "type" : " module" ,
66 "main" : " dist/bin/mcp-cli-manager.js" ,
4646 "@types/jest" : " ^29.5.14" ,
4747 "@types/node" : " ^22.13.11" ,
4848 "jest" : " ^29.7.0" ,
49+ "semver" : " ^7.6.0" ,
4950 "typescript" : " ^5.8.2"
5051 }
5152}
You can’t perform that action at this time.
0 commit comments