Github CI fails to build react app with absolute paths

I had a working pipeline with a react app that gets deployed to firebase hosting on every pull request to github.

After switching to use absolute paths, although my local builds still work fine, Github CI build fails due to not recognizing the paths:

./src/App.js
Cannot find module: 'components/Layout'. Make sure this package is installed.

It seems as if jsconfig.json is ignored. Is there a way to make Github CI also search my src directory?