How do I skip build step by files changes?
I want to prevent build step triggered on Vercel evetime I update files like Readme or .vscode
I tried to google for it but only found solutions for skipping build by branches but not by files changes. Tried .vercelignore but it is useless, it just excludes file from build, build still trigger anyway.
Solution:Jump to solution
I suggest the solution is not to maintain some configuration of which files are supposed to trigger deployment, but instead always deploy when updating main branch
you can configure to not deploy when updating your dev branch or whatever. I have put a file like this in some of my repos
//ignore-build-check.sh...
3 Replies
GitHub
allow skip build by git commit message · vercel · Discussion #60
some ci support [skip ci] for skip ci task i hope now also can have one, something like [skip now] or [skip deploy]
not sure how this solution work
Solution
I suggest the solution is not to maintain some configuration of which files are supposed to trigger deployment, but instead always deploy when updating main branch
you can configure to not deploy when updating your dev branch or whatever. I have put a file like this in some of my repos
//ignore-build-check.sh
and you go to your project settings->git on vercel and put this in the "Ignored Build Step" box