Skip to content

fix(ci): handle npm prerelease publish across Node.js CD workflows#4690

Merged
whysosaket merged 2 commits intomem0ai:mainfrom
whysosaket:cd/pre-release-case-node
Apr 3, 2026
Merged

fix(ci): handle npm prerelease publish across Node.js CD workflows#4690
whysosaket merged 2 commits intomem0ai:mainfrom
whysosaket:cd/pre-release-case-node

Conversation

@whysosaket
Copy link
Copy Markdown
Member

Linked Issue

Closes #

Description

When publishing a prerelease version to npm, npm publish requires a --tag flag — otherwise it errors with:

You must specify a tag using --tag when publishing a prerelease version.

This PR checks github.event.release.prerelease in all Node.js CD workflows and publishes with --tag next for prereleases, or as latest (default) for stable releases.

Workflows updated:

  • openclaw-cd.yml
  • cli-node-cd.yml
  • ts-sdk-cd.yml
  • vercel-ai-cd.yml

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactor (no functional changes)
  • Documentation update

Breaking Changes

N/A

Test Coverage

  • I added/updated unit tests
  • I added/updated integration tests
  • I tested manually (describe below)
  • No tests needed (explain why)

Verified github.event.release.prerelease is a valid, non-deprecated boolean field in the GitHub release webhook payload.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have added tests that prove my fix/feature works
  • New and existing tests pass locally
  • I have updated documentation if needed

kartik-mem0
kartik-mem0 previously approved these changes Apr 3, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@whysosaket whysosaket merged commit 0daa5d7 into mem0ai:main Apr 3, 2026
1 of 2 checks passed
@whysosaket whysosaket deleted the cd/pre-release-case-node branch April 3, 2026 15:47
rainfd pushed a commit to rainfd/mem0 that referenced this pull request Apr 8, 2026
…em0ai#4690)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
wuhonglei pushed a commit to wuhonglei/mem0 that referenced this pull request Apr 19, 2026
…em0ai#4690)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

2 participants