This topic was one of the first in a Google search for linking to a document library. Yes, it's oly, but maybe there will someone else looking for this.
I've solved this using the following expression in a string variable:
concat(first(split(triggerBody()?['entity']?['itemUrl'],'_layouts')),outputs('Dateieigenschaften_abrufen')?['body/{Path}'])
The German "Dateieigenschaften abrufen" is the name of the "Get file properties" action.
This gives you the link and you can e.g. use it in an e-mail. Then you need to add the <a href="yourvariablename">click here</a> tags. Be careful, you might need to change , for ; because of regional settings.
Hope this helps somebody who came here by searching how to provide a link to a library. And by the way, this works even when there is a subfolder within the library.
Cheers,
Nina