![]() |
VOOZH | about |
dotnet add package FluffySpoon.Publisher.DotNet --version 1.165.0
NuGet\Install-Package FluffySpoon.Publisher.DotNet -Version 1.165.0
<PackageReference Include="FluffySpoon.Publisher.DotNet" Version="1.165.0" />
<PackageVersion Include="FluffySpoon.Publisher.DotNet" Version="1.165.0" />Directory.Packages.props
<PackageReference Include="FluffySpoon.Publisher.DotNet" />Project file
paket add FluffySpoon.Publisher.DotNet --version 1.165.0
#r "nuget: FluffySpoon.Publisher.DotNet, 1.165.0"
#:package FluffySpoon.Publisher.DotNet@1.165.0
#addin nuget:?package=FluffySpoon.Publisher.DotNet&version=1.165.0Install as a Cake Addin
#tool nuget:?package=FluffySpoon.Publisher.DotNet&version=1.165.0Install as a Cake Tool
Publishes NuGet and NPM packages to the respective repositories.
You can also see a command-line runnable version of the following example here.
The code below will:
FluffySpoon. and have been modified within the past 30 days.1.0.<number of commits in repository>.src folder of the root of the repository:
src/<ProjectName> using dotnet build.src/<ProjectName>.Tests if present using dotnet test.src folder of the root of the repository:
npm run build.npm run test.class Program
{
static void Main()
{
var services = new ServiceCollection();
//configure the publisher to take all GitHub repositories starting with "FluffySpoon."
services.AddRepositoryToPackagePublisher("FluffySpoon.");
//configure the publisher to use specific credentials for GitHub
services.AddGitHubProviderForAccessToken("ffMathy", "my GitHub access token");
//configure NuGet publishing
services.AddNuGetProvider("my NuGet API key");
//configure NPM publishing
services.AddNpmProvider("my NPM key");
//configure .NET Core project support
services.AddDotNetProvider();
//configure NodeJS project support
services.AddNodeJsProvider();
var provider = services.BuildServiceProvider();
var publisher = provider.GetRequiredService<IRepositoryToPackagePublisher>();
publisher.RefreshAllPackagesFromAllRepositoriesAsync().Wait();
Console.WriteLine("All done!");
}
}
Below is an example of running the sample code on an GitHub Actions using environment variables.
name: .NET
on:
push:
schedule:
- cron: '0 * * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build
env:
ProjectNamePrefix: FluffySpoon.
GitHubUsername: ffMathy
NuGetKey: ${{ secrets.NuGetKey }}
NpmAuthToken: ${{ secrets.NpmAuthToken }}
GitHubPersonalAccessToken: ${{ secrets.GitHubPersonalAccessToken }}
run: |
cd src
dotnet restore
dotnet build
cd FluffySpoon.Publisher.Sample
dotnet run
Below is an example of running the sample code on an AppVeyor build server using environment variables.
version: 1.0.{build}
image: Visual Studio 2017
environment:
NuGetKey:
secure: 14GsJ75nn9jwVPMQXN7qN8xrwhyAY8TwIvvsQ+P1yzahdtfl83J8cyN+aA9WhtSY
ProjectNamePrefix: FluffySpoon.
GitHubUsername: ffMathy
NpmAuthToken:
secure: dg3EnwKFzX5E40SPkoPK53pW2D2W5sjCGV4xhORTCoe50OEASg8Xk9mI12SBVadI
GitHubPersonalAccessToken:
secure: ECBBXkriJnyuksnl3PYf7PQ/WLyRZLXf9qgLyIlOIeh4e8EnYCX5gkgmyyO1/HR+
install:
- ps: |
Install-Product node '' x64
npm install typescript -g
build_script:
- cmd: |
cd src
dotnet restore
dotnet build
cd FluffySpoon.Publisher.Sample
dotnet run
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on FluffySpoon.Publisher.DotNet:
| Package | Downloads |
|---|---|
|
FluffySpoon.Publisher.NuGet
Publishes NPM or NuGet packages automatically. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.165.0 | 1,748 | 1/13/2024 |
| 1.164.0 | 270 | 1/13/2024 |
| 1.163.0 | 1,925 | 4/17/2023 |
| 1.158.0 | 631 | 3/4/2023 |
| 1.157.0 | 695 | 2/24/2023 |
| 1.155.0 | 464 | 2/22/2023 |
| 1.154.0 | 461 | 2/21/2023 |
| 1.153.0 | 681 | 11/8/2022 |
| 1.152.0 | 1,321 | 5/4/2022 |
| 1.151.0 | 1,044 | 3/12/2022 |
| 1.150.0 | 680 | 3/12/2022 |
| 1.148.0 | 684 | 3/12/2022 |
| 1.147.0 | 664 | 3/12/2022 |
| 1.146.0 | 682 | 3/12/2022 |
| 1.145.0 | 681 | 3/12/2022 |
| 1.138.0 | 681 | 3/12/2022 |
| 1.111.0 | 13,346 | 11/27/2019 |
| 1.110.0 | 838 | 11/27/2019 |
| 1.109.0 | 1,436 | 11/1/2019 |
| 1.108.0 | 7,737 | 1/13/2019 |