Skip to content

Commit 5d5b26b

Browse files
NuGet: publish as Nimblesite.Napper (bare 'napper' id is owned by another project) (#32)
v0.13.4 confirmed OIDC works with `NUGET_USER=Nimblesite` (login succeeded). The push 403'd because **`napper` on nuget.org is owned by the unrelated "Napper ORM Project"** (v1.0.0, unlisted). Switch `PackageId` to **`Nimblesite.Napper`** (available; matches the org's `Nimblesite.*` packages; pushable by the trusted-publishing policy). `ToolCommandName` stays `napper`. All other channels green since v0.13.1.
1 parent 1e601fc commit 5d5b26b

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,10 @@ jobs:
601601
with:
602602
user: ${{ env.NUGET_USER }}
603603
- name: Push to NuGet (skip if already published)
604+
# Glob the single packed .nupkg so the push is decoupled from the PackageId
605+
# (currently Nimblesite.Napper.<version>.nupkg, not napper.<version>.nupkg).
604606
run: |
605-
dotnet nuget push "src/Napper.Cli/nupkg/napper.${VERSION}.nupkg" \
607+
dotnet nuget push src/Napper.Cli/nupkg/*.nupkg \
606608
--api-key "${{ steps.nuget_login.outputs.NUGET_API_KEY }}" \
607609
--source https://api.nuget.org/v3/index.json \
608610
--skip-duplicate

src/Napper.Cli/Napper.Cli.fsproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
the NuGet publish job is non-blocking and never gates the release. -->
1818
<PackAsTool>true</PackAsTool>
1919
<ToolCommandName>napper</ToolCommandName>
20-
<PackageId>napper</PackageId>
20+
<!-- The bare `napper` id is owned on nuget.org by an unrelated "Napper ORM Project",
21+
so we publish under the org-prefixed id (matches Nimblesite's existing
22+
Nimblesite.* packages and is pushable by the Nimblesite trusted-publishing
23+
policy). ToolCommandName stays `napper`: `dotnet tool install -g Nimblesite.Napper`
24+
still installs a `napper` command. -->
25+
<PackageId>Nimblesite.Napper</PackageId>
2126
<PackageOutputPath>./nupkg</PackageOutputPath>
2227
<PackageTags>http;api;testing;cli;rest;fsharp;dotnet-tool</PackageTags>
2328

0 commit comments

Comments
 (0)