Skip to content

fix(cd): restrict PyPI publish to main SDK tags only#4654

Merged
whysosaket merged 1 commit intomem0ai:mainfrom
whysosaket:cd/fix-deps
Apr 1, 2026
Merged

fix(cd): restrict PyPI publish to main SDK tags only#4654
whysosaket merged 1 commit intomem0ai:mainfrom
whysosaket:cd/fix-deps

Conversation

@whysosaket
Copy link
Copy Markdown
Member

Summary

  • Fix the main cd.yml workflow to only publish mem0ai on SDK-specific tags (v*), preventing accidental publishes on CLI or other package tags

Details

  • Changed the publish step condition from startsWith(github.ref, 'refs/tags') to startsWith(github.ref, 'refs/tags/v')
  • Previously, any release tag (e.g. cli-v0.2.0b1, ts-sdk-v2.5.0) would match and attempt to publish the main SDK to PyPI
  • Now only tags like v1.0.9 trigger the publish step

Test Plan

  • Create a release with tag cli-v0.2.0b1 and verify cd.yml does not publish to PyPI
  • Create a release with tag v1.0.10 and verify cd.yml does publish to PyPI

🤖 Generated with Claude Code

@whysosaket whysosaket merged commit e2b439c into mem0ai:main Apr 1, 2026
1 of 2 checks passed
@whysosaket whysosaket deleted the cd/fix-deps branch April 1, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants