C# Worflow, dotnet build cant find package

New to workflows on Github, I am using the CsvHelper package in my project, and its in the PackageReference on my .csproj file. Running dotnet build on my local machine is fine, but when it runs on the workflow it give me the error Unable to find package CsvHelper.

How do I solve this? Thank you