If its a feedback/UX/timout issue for users, you might look into the microflow settings part of your action button. Maybe a progress bar and/or asynchronous call could be what you're after?
Hi,
I don’t get why you would want to add additional delay to a long running build process, but there is a ‘Delay’ Java action that can be used in the Microflow. Adding JavaScript to a Microflow is not possible. If you really want to go hard, you can add the HTML snippet or JAvaScript Snippet from the AppStore to your page and write your JavaAction there.
Would be something like that https://www.tutorialspoint.com/javascript-sleep-function
But again, I don’t know why you would want that in this case :)