I found some similar questions here and in other places, but nothing seemed to quite fit my use case.
I am writing a JavaScript program that imports and uses another library which is licensed under MIT (but this question also holds with respect to other licenses). Since I only refer to the other library by imports, I do not have any copy of its code in my (GitHub) repository. First question: Do I still need to add the license of the used library? My guess is no, but it also does not hurt, so I will probably do it anyway.
Now, all of my source files and the distribution file of the library are packed into one single JavaScript file, which is the finished program. The script to do this is part of the GitHub repository, but the resulting file is not included in the actual git repository. Instead, it will be separately uploaded via GitHub's "release" feature. Second question: Where do I put the license notice of the external library? Is it enough to have it in the GitHub repository (which is linked to the release page and vice versa), or do I need to include a notice on the exact same webpage where the end user will download the program file?