Using Web apps in Azure, and Github CI/CD, is there a way to deploy an Express/React app as one application, where the deployment process takes care of building client/React code? Here is my directory setup:
- server.js (this is express logic)
 - package.json
 - client/ (client directory containing React source code)
 
I have server.js setup to serve a static client/build/index.html file. However, I'm not sure how to create that build directory within CI/CD. I'm currently just running npm run build locally and then pushing the build directory to my repo, but I'd preferably like deployment to take care of running npm run build.
Article 1 in Medium suggests changing the start script at the root level of server, but this does not work with Azure.
Article 2 from Medium  suggests running npm run build locally, pushing that directory to CI/CD.