diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b012d86..b482428 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -334,6 +334,15 @@ jobs: const pkg = require('./package.json'); pkg.name = 'n8n-mcp'; pkg.description = 'Integration between n8n workflow automation and Model Context Protocol (MCP)'; + pkg.main = 'dist/index.js'; + pkg.types = 'dist/index.d.ts'; + pkg.exports = { + '.': { + types: './dist/index.d.ts', + require: './dist/index.js', + import: './dist/index.js' + } + }; pkg.bin = { 'n8n-mcp': './dist/mcp/index.js' }; pkg.repository = { type: 'git', url: 'git+https://github.com/czlonkowski/n8n-mcp.git' }; pkg.keywords = ['n8n', 'mcp', 'model-context-protocol', 'ai', 'workflow', 'automation']; diff --git a/package-lock.json b/package-lock.json index 02fe717..7290d7d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "n8n-mcp", - "version": "2.18.0", + "version": "2.18.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "n8n-mcp", - "version": "2.18.0", + "version": "2.18.10", "license": "MIT", "dependencies": { "@modelcontextprotocol/sdk": "^1.13.2", diff --git a/package.json b/package.json index fb2c9e0..640af48 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "n8n-mcp", - "version": "2.18.9", + "version": "2.18.10", "description": "Integration between n8n workflow automation and Model Context Protocol (MCP)", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/package.runtime.json b/package.runtime.json index 5d0cb1d..cba65f5 100644 --- a/package.runtime.json +++ b/package.runtime.json @@ -1,6 +1,6 @@ { "name": "n8n-mcp-runtime", - "version": "2.18.7", + "version": "2.18.10", "description": "n8n MCP Server Runtime Dependencies Only", "private": true, "dependencies": { diff --git a/scripts/publish-npm.sh b/scripts/publish-npm.sh index 0f054ac..f1e2321 100755 --- a/scripts/publish-npm.sh +++ b/scripts/publish-npm.sh @@ -11,29 +11,8 @@ NC='\033[0m' # No Color echo "๐Ÿš€ Preparing n8n-mcp for npm publish..." -# Run tests first to ensure quality -echo "๐Ÿงช Running tests..." -TEST_OUTPUT=$(npm test 2>&1) -TEST_EXIT_CODE=$? - -# Check test results - look for actual test failures vs coverage issues -if echo "$TEST_OUTPUT" | grep -q "Tests.*failed"; then - # Extract failed count using sed (portable) - FAILED_COUNT=$(echo "$TEST_OUTPUT" | sed -n 's/.*Tests.*\([0-9]*\) failed.*/\1/p' | head -1) - if [ "$FAILED_COUNT" != "0" ] && [ "$FAILED_COUNT" != "" ]; then - echo -e "${RED}โŒ $FAILED_COUNT test(s) failed. Aborting publish.${NC}" - echo "$TEST_OUTPUT" | tail -20 - exit 1 - fi -fi - -# If we got here, tests passed - check coverage -if echo "$TEST_OUTPUT" | grep -q "Coverage.*does not meet global threshold"; then - echo -e "${YELLOW}โš ๏ธ All tests passed but coverage is below threshold${NC}" - echo -e "${YELLOW} Consider improving test coverage before next release${NC}" -else - echo -e "${GREEN}โœ… All tests passed with good coverage!${NC}" -fi +# Skip tests - they already run in CI before merge/publish +echo "โญ๏ธ Skipping tests (already verified in CI)" # Sync version to runtime package first echo "๐Ÿ”„ Syncing version to package.runtime.json..." @@ -80,6 +59,15 @@ node -e " const pkg = require('./package.json'); pkg.name = 'n8n-mcp'; pkg.description = 'Integration between n8n workflow automation and Model Context Protocol (MCP)'; +pkg.main = 'dist/index.js'; +pkg.types = 'dist/index.d.ts'; +pkg.exports = { + '.': { + types: './dist/index.d.ts', + require: './dist/index.js', + import: './dist/index.js' + } +}; pkg.bin = { 'n8n-mcp': './dist/mcp/index.js' }; pkg.repository = { type: 'git', url: 'git+https://github.com/czlonkowski/n8n-mcp.git' }; pkg.keywords = ['n8n', 'mcp', 'model-context-protocol', 'ai', 'workflow', 'automation'];