The following instructions are for building, packaging and releasing the library to NuGet.
- Ensure .NET Core SDK version >= 2.0.0 is installed
- Ensure Node.js version >= 4 is installed and that jBash is installed globally (
npm i -g jbash
). - Ensure
NUGET_API_KEY
andGITHUB_API_TOKEN
environment variables are set - Run the
scripts/release.js
command, passing in the version and release notes:
./scripts/release.js [VERSION_NUMBER] "[RELEASE_NOTES]"
This will:
- Run tests
- Create NuGet package
- Upload NuGet package
- Create a git tag for the release
- Create a Relese on GitHub
- Upload the .nupkg file as a release asset to GitHub
The demo site is automatically deployed to the Azure App Service by a GitHub deployment hook configured in Azure.