"Ignored Build Step" > "Only build if there are changes in a folder" not working

I have two different Vercel projects that are both connected to the same monorepo. The two relevant folders (which are also the Root Directories for each project) are:

  1. ./site
  2. ./kitchen

For both of them I have configured Ignored Build Step > Only build if there are changes in a folder, with the respective commands:

  1. git diff HEAD^ HEAD --quiet – ./site
  2. git diff HEAD^ HEAD --quiet – ./kitchen

When I commit changes to either folder both projects rebuild. I would expect that only the relevant project would build.

My repo is not currently set up with Workspace, so I can’t use the Skip deployments when there are no changes to the root directory or its dependencies. feature.

Any help would be much appreciated!

Thanks,
Alex

Hey @alexhollender. I wasn’t able to replicate this behavior with my test app. Can you share a screenshot of the monorepo folder structure? If you’re able to share the public repo or a minimal reproducible example, that’s even better.

Hey @amyegan, thanks for replying. Here is a screenshot of the folder structure. In case it is helpful to know, both of the relevant folders have their own package.json files.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.