Skip to content

ci(repo): publish preview packages only with run-preview-packages label - #6524

Queued
avallete wants to merge 2 commits into
developfrom
chore/preview-packages-on-demand
Queued

ci(repo): publish preview packages only with run-preview-packages label#6524
avallete wants to merge 2 commits into
developfrom
chore/preview-packages-on-demand

Conversation

@avallete

@avallete avallete commented Sep 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Gate pkg.pr.new preview CLI package publishes behind the run-preview-packages label (re-publish on push while labeled; remove label to cancel).
  • Stop publishing on every ready develop PR and remove preview from the run-ci suite so large binaries are only uploaded when someone needs a shareable install.
  • Document the opt-in in MAINTAINERS.md and sync related workflow comments.

Linked issue

No linked GitHub issue (maintainer follow-up from Slack).

  • The linked issue is open and carries the open-for-contribution label (or I'm a Supabase maintainer).

Checklist

  • The PR title follows Conventional Commits (e.g. fix(cli): …).
  • Tests added or updated for the change.
  • From the repository root, pnpm check:all passes; relevant package tests pass for every touched workspace, and pnpm types:check passes for each touched TypeScript workspace (or workspace declaring it).

Stop uploading large CLI binaries to pkg.pr.new on every develop PR; opt in
with the label instead, and decouple preview from run-ci.
@avallete
avallete requested a review from a team as a code owner September 8, 2026 17:12

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Review

Claude reported three findings; Codex reported none. Code inspection confirms two low-impact hygiene issues. The possible required-check regression remains uncertain because branch-protection configuration is not present in the repository. No critical or major issues were verified.

Findings

Severity Location Category Sources Claim
🟡 MINOR .github/workflows/publish-preview-cli-packages.yml:38 ci claude Label-gating the reusable build job may leave a required nested preview-workflow check pending on unlabeled PRs if branch protection requires that check.
⚪ NIT .github/workflows/publish-preview-cli-packages.yml:54 maintainability claude The label gate is redundantly duplicated in the downstream publish and comment jobs even though each already requires its gated upstream job to succeed.
⚪ NIT .github/workflows/run-ci.yml:24 security claude run-ci.yml retains an unnecessary workflow-level pull-requests: write permission after removal of the preview job.

Findings outside the diff

  • ⚪ NIT .github/workflows/run-ci.yml:24run-ci.yml retains an unnecessary workflow-level pull-requests: write permission after removal of the preview job.

Stats

Claude findings: 3 · Codex findings: 0 · Confirmed: 2 · Refuted: 0 · Uncertain: 1


Models: claude-opus-5 + gpt-5.6-sol · Trigger: auto · Workflow run

This review runs once per PR. A maintainer can request another with a /ai-review comment.

Comment thread .github/workflows/publish-preview-cli-packages.yml
Comment thread .github/workflows/publish-preview-cli-packages.yml Outdated
Keep the opt-in gate only on the build job and remove pull-requests:write
from run-ci now that it no longer posts preview comments.
@avallete
avallete added this pull request to the merge queue Sep 8, 2026
Any commits made after this event will not be merged.
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 8, 2026
@avallete
avallete added this pull request to the merge queue Sep 9, 2026
Any commits made after this event will not be merged.
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