Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
package

GitHub Action

NuGet Package Availability Checker

v1.0.0

NuGet Package Availability Checker

package

NuGet Package Availability Checker

GitHub Action automates NuGet package availability checks, ensuring packages exist and are indexed on nuget.org

Installation

Copy and paste the following snippet into your .yml file.

              

- name: NuGet Package Availability Checker

uses: BMTLab/[email protected]

Learn more about this action in BMTLab/nuget-package-check-action

Choose a version

nuget-package-check-action

CI-Main

  • Automates NuGet package availability checks, ensuring packages exist and are indexed on nuget.org.
  • Supports multiple verification attempts and can suspend CI/CD workflows until the package is published.

How to use

✅ To quickly check if the package exists and is available on NuGet, please add the following job:

- name: Check Available NuGet Package
  uses: actions/nuget-package-check-action@v1
  with:
    package: YourAwesomePackage
    version: 1.3.505

✅ If your workflow publishes a package and further work requires that the package is already available and indexed, please set a reasonable number of retries:

Tip

The retry interval is 30 seconds, so 10 retries are usually enough time between publishing and when the package is indexed and available.

- name: Check Available NuGet Package
  uses: actions/nuget-package-check-action@v1
  with:
    package: YourAwesomePackage
    version: 1.3.505
    attempts: 10

❌ The job will terminate with an error if no package is found.

Compatibility

Ubuntu Windows MacOS

Important

When you're using self-hosted runners, please make sure you have Node.js v20 installed!

Contributing

Please feel free to contribute or let me know if you find a bug. Also, any ideas for improvement would be appreciated 😇