Action needs to restore NuGet packages from private GitHub registry

I have a library project that I’m trying to create a GitHub action for. This action will create a NuGet package for my project but first needs to restore NuGet dependencies from both NuGet.org and a private GitHub package registry for my organization.

I need help with restoring these NuGet dependencies. Could someone point me in the right direction? A sample YAML that shows this would be great. The main challenge is to connect and restore the NuGet package from my company’s private GitHub Package registry.

Thanks,
Sam