within function deploy other function once everything is done javascript code example
Example: firebase deploy functions multiple
$ firebase deploy --only functions:function1,functions:function2
$ firebase deploy --only functions:function1,functions:function2