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
To publish a pre-release version, add a "-" suffix to the version, such as "1.0.1-alpha" or "2.18-beta". By default Nuget will not update to pre-release versions.
The demo site is automatically built and deployed using the .github/workflows/demo_site.yml
GitHub Actions workflow. The demo site is hosted on GitHub Pages.