How to prevent duplicate builds

A few times I’ve run expo build:ios and then expo upload:ios, only to find out at the end that I forgot to update the version in my app.json. Is there a way to make the build step fail fast if I forget to do this?