I've been looking all over for this, and finally discovered a setting in App Store Connect --> Xcode Cloud --> Settings --> Build Number. Not sure if there's a way to set this with an outside process, but you can at least set a starting number and it should auto increment.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: