'App Center: how to automatically run a script somewhere between git clone and npm install?

In order to try and make App Center work with my monorepo React Native app, I am trying to find a way to insert a few bash scripts between the automated git clone and npm install called by App Center. Indeed, App Center automatically git clone the linked project and then automatically runs npm install as soon as the cloning is done.

There is no native post-clone hook, I haven't been able to make that package work (and I don't even know if it could work since the git clone command would be called from a blank environment) and npm script preinstall doesn't seem to work as it should since npm 7.

Does anyone know of a way to achieve that?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source