NOTE: I no longer use this script since the release of turbo-ignore
(More details)
Example of a script called by vercel
Ignored Build Step
option to only build application in monorepo when changes have been detected.
node ../../scripts/ignore-step.js
More details available here
This modification checks against the previous successful deploy commit SHA, which is provided by vercel now. (https://vercel.com/docs/concepts/projects/environment-variables/system-environment-variables)