npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

semantic-release-net

v1.3.2

Published

semantic release plugin to deploy dotnet nuget packages to nuget sources.

Downloads

33

Readme

semantic release net

Semantic release plugin to publish .NET packages to NuGet sources. Performs the following actions:

  • verifyConditions: Checks if the default nuget token (NUGET_TOKEN) is set, or if sources are set, if the corresponding tokens are set.
  • prepare: Creates the NuGet packages using dotnet pack with the corresponding new version and release notes.
  • publish: Publishes the NuGet packages to the configured NuGet sources.

Packages are created in their corresponding bin/$(Configuration)/ folder. To enable / disable package creation, you can set the <IsPackable>true</IsPackable> option in the .csproj file.

Configuration

If no sources are configured, the NUGET_TOKEN env var must be set. The default nuget source (https://api.nuget.org/v3/index.json) is used in this case.

Options

  • configuration: The configuration to use for dotnet pack (default: Release)
  • pack: Whether the plugin should run dotnet pack (default: true)
  • additionalPackArgs: Array of strings to pass as additional arguments to dotnet pack
  • additionalPublishArgs: Array of strings to pass as additional arguments to dotnet nuget push
  • sources: Array of sources to publish to. Each source must have the following properties:
    • url: The url of the source
    • apiKeyEnvVar: The name of the environment variable that contains the API key for the source
// Type definition of the plugin options
export type PluginConfig = {
  configuration?: 'Release' | 'Development';
  pack?: boolean;
  additionalPackArgs?: string[];
  sources?: { url: string; apiKeyEnvVar: string }[];
  additionalPublishArgs?: string[];
};

Configuration example when using default nuget

// .releaserc.json example
{
  "plugins": [
    [
      "semantic-release-dotnet",
      {
        "configuration": "Release",
        "pack": true,
        "additionalPackArgs": ["/property:PackageIcon=icon.png"],
        "additionalPublishArgs": ["--skip-duplicates"]
      }
    ]
  ]
}

Configuration example when specifying sources

// .releaserc.json example
{
  "plugins": [
    [
      "semantic-release-dotnet",
      {
        // key/value config of the other example...
        "sources": [
          {
            "url": "https://api.nuget.org/v3/index.json",
            "apiKeyEnvVar": "NUGET_TOKEN"
          },
          {
            "url": "https://nuget.pkg.github.com/buehler/index.json",
            "apiKeyEnvVar": "GH_NUGET_TOKEN"
          }
        ]
      }
    ]
  ]
}