Skip to content

ci: publish @base44/platform PR previews - #320

Merged
ozsay merged 1 commit into
mainfrom
ci/platform-preview-publish
Oct 12, 2026
Merged

ozsay merged 1 commit into
mainfrom
ci/platform-preview-publish

Conversation

@ozsay

@ozsay ozsay commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • New changes job picks the packages to preview: @base44/sdk on every PR (unchanged), @base44/platform only when the PR touches packages/platform/.
  • publish-preview runs as a matrix over those packages and publishes @base44-preview/<package>@<version>-pr.<N>.<sha>. The name-mismatch safety checks and package.json restore are unchanged.
  • One PR comment per package, found by a hidden <!-- package-preview:<package> --> marker, with install/alias commands for the right package (e.g. npm i "@base44/platform@npm:@base44-preview/platform@…"). The SDK keeps its existing header, so open PRs update their current comment instead of getting a second one. The comment lookup now reads 100 comments per page instead of 30.

Setup

  • @base44-preview/platform exists on npm (placeholder 0.0.0).
  • Before the first platform preview: add a trusted publisher on npmjs.com for @base44-preview/platform → repo base44/javascript-sdk, workflow preview-publish.yml.

Test plan

🤖 Generated with Claude Code

Matrix the preview job over packages. @base44/sdk still previews on every
PR; @base44/platform only when the PR touches packages/platform/. Each
package gets its own PR comment, keyed by a hidden marker; the SDK keeps
its existing header so open PRs update the comment they already have.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🚀 Package Preview Available!


Install this PR's preview build with npm:

npm i @base44-preview/sdk@0.8.53-pr.320.9f08a7a

Prefer not to change any import paths? Install using npm alias so your code still imports @base44/sdk:

npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.53-pr.320.9f08a7a"

Or add it to your package.json dependencies:

{
  "dependencies": {
    "@base44/sdk": "npm:@base44-preview/sdk@0.8.53-pr.320.9f08a7a"
  }
}

Preview published to npm registry — try new features instantly!

@ozsay
ozsay requested a review from amitbardos October 12, 2026 11:19
@ozsay
ozsay merged commit 6f0c76b into main Oct 12, 2026
7 checks passed
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