As far as I know, you’re going to have to look into their CICD Api
I’ve used it on a few projects - can be a bit tricky to setup, but once you are up and running, you can build your frontend in your own pipeline.
Umbraco Cloud does not let you run a npm build as part of their pipeline.