The general error that breaks the github CI is the same as in this issue - distutils was removed in a newer version of python and so one of the dependencies postinstall script breaks because of that. This diff fixes that by additionaly installing an older (3.10) version of python before installing the dependencies.
Note that I'm still not sure why the CI is sometimes successful but I'm hoping this should fix the errors.
INFO: Most native (written in C++) js modules are built with something called node-gyp. It's written in python and used at build time in postinstall scripts. That's why we need to mess with python.