How to build Kibana Plugin using Git CI?

I am trying to build a Kibana Plugin using Git CI.
What is the best practice to do so?

Using Kibana 7.5.2

all that Kibana needs to start the build is yarn kbn bootstrap and then yarn build to be run. The rest of the configs should be related to Git CI.