bestofjs / bestofjs

:star: A place to find the best components to build amazing web applications. The best of JavaScript!
https://bestofjs.org
MIT License
2.62k stars 141 forks source link

Only trigger build for the relevant app, depending on commits #244

Open michaelrambeau opened 8 months ago

michaelrambeau commented 8 months ago

Every commit in the monorepo triggers a rebuild of the 2 applications:

Most of the time we want to re-build only one application.

Could we setup something to build only the application that is related to the commit instead of all applications?

It's important as we plan to add more apps (backend) in the future.

About monorepos in Vercel docs: https://vercel.com/docs/monorepos

Once you've created a separate Project for each of the directories within your Git repository, every commit will issue a Deployment for all connected Projects and display the resulting URLs on your pull requests and commits

If you want to abort the Build Step for certain projects if their files didn't change, you can do so with the Ignored Build Step project setting.

michaelrambeau commented 8 months ago

Setup from Vercel dashboard

I updated the setup of bestofjs-classic to take into account only commits related to files insides apps/bestofjs-webui:

Image

It works, as mentioned in the here: https://github.com/bestofjs/bestofjs/pull/243#issuecomment-1792241538