Skip to content

fix(ci): publish dependent packages in pkg.pr.new preview#692

Merged
orionmiz merged 1 commit intomainfrom
edward_karrot/pkg-pr-new-deps
Apr 2, 2026
Merged

fix(ci): publish dependent packages in pkg.pr.new preview#692
orionmiz merged 1 commit intomainfrom
edward_karrot/pkg-pr-new-deps

Conversation

@orionmiz
Copy link
Copy Markdown
Collaborator

@orionmiz orionmiz commented Apr 2, 2026

Summary

  • pkg.pr.new 프리뷰 배포 시 변경된 패키지만 배포하던 것을, 의존성으로 엮인 패키지들까지 함께 배포하도록 변경
  • 기존의 수동 git diff + 디렉토리 매칭 로직을 Yarn 내장 workspaces list --since --recursive로 대체하여 코드 대폭 간소화

Test plan

  • PR에서 core 등 하위 패키지 변경 시 의존하는 패키지들이 함께 pkg.pr.new로 배포되는지 확인

🤖 Generated with Claude Code

Use Yarn's built-in `workspaces list --since --recursive` to detect
changed packages and their transitive dependents, replacing the manual
git diff + directory matching approach.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 2, 2026

⚠️ No Changeset found

Latest commit: d735939

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 2, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: dda61c60-abe5-4ee2-b030-b8c9981741a3

📥 Commits

Reviewing files that changed from the base of the PR and between b6867bd and d735939.

📒 Files selected for processing (1)
  • scripts/publish-preview-packages.sh

Disabled knowledge base sources:

  • Jira integration is disabled
  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.


📝 Walkthrough

Summary by CodeRabbit

Chores

  • Enhanced the package detection and publishing workflow to use workspace graph-based computation for more reliable identification of changed packages and their dependents during releases.

Walkthrough

Replaced git-based change detection with Yarn workspace graph–based computation using yarn workspaces list --since. Simplified publishing flow by removing conditional branches and directly invoking publish when packages are detected. Updated log messages to reflect the new approach.

Changes

Cohort / File(s) Summary
Publish Script Logic
scripts/publish-preview-packages.sh
Replaced git diff with yarn workspaces list --since for detecting changed packages; removed conditional branching in publishing logic and simplified log messages.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch edward_karrot/pkg-pr-new-deps

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@orionmiz orionmiz enabled auto-merge (squash) April 2, 2026 09:41
@orionmiz orionmiz merged commit 862e9c6 into main Apr 2, 2026
5 of 8 checks passed
@orionmiz orionmiz deleted the edward_karrot/pkg-pr-new-deps branch April 2, 2026 09:41
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.

1 participant