Build and publish the package
This page is for maintainers and for teams that host the package on their own feed.
Build
dotnet test # unit + integration tests
dotnet pack src/SuperAdmin.Rbac/SuperAdmin.Rbac.csproj -c Release -o artifacts
# -> artifacts/SuperAdmin.Rbac.<version>.nupkg (+ .snupkg symbols with Source Link)
Release to nuget.org
Releases run from GitHub Actions with Trusted Publishing, so no API key is stored. Push a SemVer tag. The version comes from the tag:
git tag v0.2.4
git push origin v0.2.4
Use three-part SemVer versions (0.2.4, 1.0.0-beta.1). The workflow refuses other tags.
warning
A published version cannot be deleted or reused on nuget.org. It can only be unlisted.
Publish to other feeds
# nuget.org (public). Create an API key at https://www.nuget.org/account/apikeys
dotnet nuget push artifacts/SuperAdmin.Rbac.<version>.nupkg --api-key <KEY> --source https://api.nuget.org/v3/index.json
# GitHub Packages (private to your org)
dotnet nuget push artifacts/SuperAdmin.Rbac.<version>.nupkg --api-key <GITHUB_PAT> --source https://nuget.pkg.github.com/<OWNER>/index.json
# Azure Artifacts
dotnet nuget push artifacts/SuperAdmin.Rbac.<version>.nupkg --api-key az --source https://pkgs.dev.azure.com/<ORG>/_packaging/<FEED>/nuget/v3/index.json
# Shared folder / file server (no server needed)
copy artifacts\SuperAdmin.Rbac.<version>.nupkg \\fileserver\nuget\
If you publish your own build under a different ID, change <PackageId> in the project file (for example YourCompany.SuperAdmin.Rbac).
License
MIT. The admin theme CSS comes from the MIT-licensed Super Admin project and includes Bootstrap 5.3 (MIT) and Font Awesome Free (fonts: SIL OFL 1.1; see wwwroot/fontawesome/LICENSE.txt).