Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
fix(ci): skip npm publish if version already exists on npm registry
diegosouzapw2a620b178dd1
diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.ymlindex 1f18fa41c9..1089ad4ee8 100644--- a/.github/workflows/npm-publish.yml+++ b/.github/workflows/npm-publish.yml@@ -39,6 +39,13 @@ jobs:run: node scripts/prepublish.mjs- name: Publish to npm- run: npm publish --access public+ run: |+ VERSION=$(node -p "require('./package.json').version")+ # Check if this version is already published — skip instead of failing with E403+ if npm view "omniroute@${VERSION}" version --silent 2>/dev/null | grep -q "^${VERSION}$"; then+ echo "️⚠️ Version ${VERSION} is already published on npm — skipping."+ exit 0+ fi+ npm publish --access publicenv:NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}