feat: add test execution to npm publish workflow

- Run all tests before publishing to npm
- Abort publish if any tests fail
- Ensures only quality-tested code gets published
- Shows clear success/failure messages

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
czlonkowski
2025-07-30 09:47:58 +02:00
parent f2eb344476
commit 0e26a46af9

View File

@@ -11,6 +11,15 @@ NC='\033[0m' # No Color
echo "🚀 Preparing n8n-mcp for npm publish..."
# Run tests first to ensure quality
echo "🧪 Running tests..."
npm test
if [ $? -ne 0 ]; then
echo -e "${RED}❌ Tests failed. Aborting publish.${NC}"
exit 1
fi
echo -e "${GREEN}✅ All tests passed!${NC}"
# Sync version to runtime package first
echo "🔄 Syncing version to package.runtime.json..."
npm run sync:runtime-version