Skip to content

ci(cli): publish pkg.pr.new previews after preview builds#5420

Merged
jgoux merged 11 commits into
developfrom
codex/pkg-pr-new-preview-smoke
Jun 2, 2026
Merged

ci(cli): publish pkg.pr.new previews after preview builds#5420
jgoux merged 11 commits into
developfrom
codex/pkg-pr-new-preview-smoke

Conversation

@jgoux

@jgoux jgoux commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds pkg.pr.new preview publishing for internal PRs after the normal Test workflow passes. The preview workflow resolves the current PR head, skips draft/fork/stale runs, builds the legacy release-shaped CLI artifacts, publishes all platform wrapper packages plus apps/cli to pkg.pr.new, verifies the PR-scoped npx command, and updates a single PR comment with the latest preview command.

Extracts the shared CLI artifact build into a reusable workflow so production releases, manual release smoke tests, and PR previews all build the same packages/dist artifact shape. Release publishing still runs the full smoke matrix before npm/GitHub/Homebrew/Scoop publication, while manual release smoke is available through a dedicated dry-run workflow.

Adds pkg-pr-new as a root dev dependency and keeps the Windows release smoke coverage aligned with the published artifacts by checking the native wrapper, release tarball, and Scoop install paths.

Reviewer Notes

The preview flow intentionally posts its own pkg.pr.new comment because it runs after Test via workflow_run and needs to publish the stable PR-scoped command, not a commit-SHA-only command.

@jgoux jgoux force-pushed the codex/pkg-pr-new-preview-smoke branch 3 times, most recently from 78b41ee to 148d83e Compare June 2, 2026 09:36
@jgoux jgoux marked this pull request as ready for review June 2, 2026 09:41
@jgoux jgoux requested a review from a team as a code owner June 2, 2026 09:41
@jgoux jgoux force-pushed the codex/pkg-pr-new-preview-smoke branch from 148d83e to df14f5e Compare June 2, 2026 09:44
@jgoux jgoux force-pushed the codex/pkg-pr-new-preview-smoke branch from df14f5e to f6a99f9 Compare June 2, 2026 10:00
@jgoux jgoux marked this pull request as draft June 2, 2026 10:25
@jgoux jgoux changed the title ci(cli): publish pkg.pr.new previews on demand ci(cli): publish pkg.pr.new previews after tests pass Jun 2, 2026
@jgoux jgoux changed the title ci(cli): publish pkg.pr.new previews after tests pass ci(cli): publish pkg.pr.new previews after preview builds Jun 2, 2026
@jgoux jgoux marked this pull request as ready for review June 2, 2026 11:07
@jgoux jgoux enabled auto-merge (squash) June 2, 2026 11:24
@jgoux jgoux merged commit 1dfe7d5 into develop Jun 2, 2026
8 checks passed
@jgoux jgoux deleted the codex/pkg-pr-new-preview-smoke branch June 2, 2026 11:28
jgoux added a commit that referenced this pull request Jun 4, 2026
- **chore: sync API types from infrastructure (#5417)**
- **fix(cli): read Go Windows credentials in legacy TS (#5418)**
- **fix(ci): pass release channel to PR smoke workflow (#5419)**
- **fix(cli): enable vector buckets by default (#5421)**
- **fix(cli): bind a free port for edge-runtime diff containers
(#5424)**
- **ci(cli): publish pkg.pr.new previews after preview builds (#5420)**
- **feat(ci): notify Slack on release failures regardless of channel
(#5425)**
- **feat(cli): port telemetry  (#5422)**
- **docs(cli): modernize README and add installer (#5428)**
- **fix(docker): check Supabase image updates hourly (#5429)**
- **ci(cli): publish pkg.pr.new previews on pull requests (#5427)**
- **fix(docker): restore daily Dependabot schedule (#5430)**
- **fix(docker): bump the docker-minor group in
/apps/cli-go/pkg/config/templates with 5 updates (#5431)**
- **fix(cli): read Go Windows credentials via findCredentials (#5423)**
- **chore: sync API types from infrastructure (#5434)**
- **chore(ci): update Dependabot Go module paths (#5435)**
- **ci(release): use app token for release tag pushes (#5432)**
- **fix(deps): bump the go-minor group across 2 directories with 7
updates (#5437)**
- **fix(docker): bump the docker-minor group in
/apps/cli-go/pkg/config/templates with 2 updates (#5436)**
- **feat(cli): port link and unlink commands to native TypeScript
(#5426)**
- **feat(cli): port init (#5433)**
- **ci(release): use app token checkout for release pushes (#5439)**
- **fix(deps): bump the actions-major group across 1 directory with 14
updates (#5342)**
- **fix(docker): bump supabase/studio from 2026.06.01-sha-a4334a2 to
2026.06.03-sha-0bca601 in /apps/cli-go/pkg/config/templates in the
docker-minor group (#5441)**
- **chore(ci): add CLI preview PR comment (#5440)**
- **chore(ci): bump the actions-major group with 2 updates (#5443)**
- **chore(ci): use non-releasing actions dependabot prefix (#5442)**
- **fix(cli): inject S3 and sb key env variables into Studio (#5438)**
- **ci(preview): allow preview package PR comment (#5444)**
- **chore(release): add LLM release-notes prompt and approval-based
publish pipeline (#5330)**
- **chore(ci): fix propose release workflow dispatch (#5447)**
- **chore(ci): update workflows to skip CI for release-notes PRs
(#5455)**
- **feat(cli): port login and logout commands to native TypeScript
(#5446)**
- **chore(ci): bump aws-actions/configure-aws-credentials from 6.1.2 to
6.1.3 in the actions-major group (#5463)**
- **fix(docker): bump supabase/realtime from v2.103.1 to v2.103.2 in
/apps/cli-go/pkg/config/templates in the docker-minor group (#5464)**
- **fix(cli): persist legacy telemetry opt-out (#5465)**
- **fix(cli): restore Go debug output parity (#5467)**

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: supabase-cli-releaser[bot] <246109035+supabase-cli-releaser[bot]@users.noreply.github.com>
Co-authored-by: Julien Goux <hi@jgoux.dev>
Co-authored-by: Colum Ferry <cferry09@gmail.com>
Co-authored-by: Vaibhav <117663341+7ttp@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: VERSA SYNC STUDIOS <206948228+Versa-Sync-Studios@users.noreply.github.com>
Co-authored-by: Andrew Valleteau <avallete@users.noreply.github.com>
Co-authored-by: Claude <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