File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 "publish:patch" : " npm version patch && npm publish" ,
2020 "publish:minor" : " npm version minor && npm publish" ,
2121 "publish:major" : " npm version major && npm publish" ,
22- "publish" : " ./scripts/publish.sh" ,
22+ "publish" : " echo 'Use ./scripts/publish.sh or npm run publish:patch/minor/major instead' " ,
2323 "prepublishOnly" : " npm run clean && npm run build" ,
2424 "test" : " echo \" No tests specified\" && exit 0" ,
2525 "lint" : " echo \" No linter configured\" && exit 0"
7171 "url" : " https://github.com/srthkdev/dbeaver-mcp-server/issues"
7272 },
7373 "homepage" : " https://github.com/srthkdev/dbeaver-mcp-server#readme"
74- }
74+ }
Original file line number Diff line number Diff line change @@ -48,12 +48,19 @@ echo "🔨 Building project..."
4848npm run build
4949
5050echo " 📤 Publishing to npm..."
51- npm run publish:$VERSION_TYPE
51+ # Use the direct npm publish command instead of the npm run publish script to avoid recursion
52+ if [ " $VERSION_TYPE " = " major" ]; then
53+ npm version major && npm publish
54+ elif [ " $VERSION_TYPE " = " minor" ]; then
55+ npm version minor && npm publish
56+ else
57+ npm version patch && npm publish
58+ fi
5259
5360echo " "
5461echo " 🎉 Successfully published dbeaver-mcp-server!"
5562echo " 📋 Package info:"
5663npm info dbeaver-mcp-server version
5764echo " "
5865echo " 🔗 Install with: npm install -g dbeaver-mcp-server@latest"
59- echo " 🌐 View on npm: https://www.npmjs.com/package/dbeaver-mcp-server"
66+ echo " 🌐 View on npm: https://www.npmjs.com/package/dbeaver-mcp-server"
You can’t perform that action at this time.
0 commit comments