Skip to content

Conversation

@portuu3
Copy link
Collaborator

@portuu3 portuu3 commented Jan 30, 2026

Issue tracking

closes #3547

Context behind the change

Added a script that:

  • Detects current branch and compares against origin/main to see if core, sdk, or logger changed.
  • For the target workspace, replaces any workspace:* deps with the latest published npm versions, unless the corresponding package changed locally.
  • If core/sdk/logger changed, it builds them.
  • Finally focuses the requested workspace so only its dependencies are installed.
  • NPM use can be forced setting USE_NPM_PACKAGES=true

How has this been tested?

Tested locally and on Render

Release plan

Update build scripts in Render after merge

Potential risks; What to monitor; Rollback plan

Failed builds

@portuu3 portuu3 self-assigned this Jan 30, 2026
@vercel
Copy link

vercel bot commented Jan 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
human-app Ready Ready Preview, Comment Jan 30, 2026 9:26am
human-dashboard-frontend Ready Ready Preview, Comment Jan 30, 2026 9:26am
staking-dashboard Ready Ready Preview, Comment Jan 30, 2026 9:26am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
faucet-frontend Ignored Ignored Preview Jan 30, 2026 9:26am
faucet-server Ignored Ignored Preview Jan 30, 2026 9:26am

Request Review

@portuu3 portuu3 requested review from Dzeranov and Copilot January 30, 2026 09:15
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR speeds up the CD build process by introducing a selective build strategy that only builds and installs dependencies for packages that have changed compared to the main branch.

Changes:

  • Added a new build script that detects changed packages (core, sdk, logger) and conditionally builds them
  • Modified job-launcher server dependencies to include core and ethers packages
  • Disabled Yarn's transparent workspaces feature to support the new build approach

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
scripts/cd-build.sh New script implementing selective build logic with git diff detection and npm package replacement
packages/apps/job-launcher/server/package.json Added core and ethers dependencies to support build changes
.yarnrc.yml Disabled transparent workspaces to allow selective dependency resolution

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.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.

Speed up building process

2 participants