Creating and publishing packages in GitHub

Creating tokens

Go and create 2 tokens. One with a write:packages scope and one with a read:packages scope for consumption. The first token I called Package Publisher and the second one Package Reader. Save them somewhere safe.

Creating NuGet config file

Create nuget.config file. Something like this:

<?xml version="1.0" encoding="utf-8"?>
        <add key="github" value="<YourOrganizationName>/index.json" />

Instead of "github" you can use any other description you like. It just a name of the entry. Then you need to put this file in the same directory as solution for your package and for every solution that will