Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
🔁 ci: Skip the data-provider publish when its version is already on npm (#17639)
Danny Avilac9b7ab47261b
diff --git a/.github/workflows/data-provider.yml b/.github/workflows/data-provider.ymlindex c3aed18863..bbc61f5b2b 100644--- a/.github/workflows/data-provider.yml+++ b/.github/workflows/data-provider.yml@@ -19,6 +19,8 @@ permissions:jobs:pack:runs-on: ubuntu-latest+ outputs:+ skip: ${{ steps.check.outputs.skip }}steps:- uses: actions/checkout@v5- uses: actions/setup-node@v5@@ -26,12 +28,26 @@ jobs:node-version: '24.22.1'- run: cd packages/data-provider && npm ci- run: cd packages/data-provider && npm run build+ - name: Check version change+ id: check+ working-directory: packages/data-provider+ run: |+ PACKAGE_VERSION=$(node -p "require('./package.json').version")+ if npm view "librechat-data-provider@$PACKAGE_VERSION" version 2>/dev/null | grep -q .; then+ echo "Version $PACKAGE_VERSION is already published, skipping publish"+ echo "skip=true" >> $GITHUB_OUTPUT+ else+ echo "Version $PACKAGE_VERSION is unpublished, proceeding with publish"+ echo "skip=false" >> $GITHUB_OUTPUT+ fi- name: Pack package+ if: steps.check.outputs.skip != 'true'run: |mkdir -p npm-packagecd packages/data-providernpm pack --pack-destination "$GITHUB_WORKSPACE/npm-package"- name: Upload package+ if: steps.check.outputs.skip != 'true'uses: actions/upload-artifact@v6with:name: librechat-data-provider-package@@ -41,7 +57,7 @@ jobs:publish-npm:needs: pack- if: github.ref == 'refs/heads/main'+ if: github.ref == 'refs/heads/main' && needs.pack.outputs.skip != 'true'runs-on: ubuntu-latestenvironment: publish # Must match npm trusted publisher configpermissions: