Skip to content

Commit 180ab85

Browse files
NuGet: stop pushing the stale committed napper.1.0.0.nupkg
v0.13.5 actually PUBLISHED Nimblesite.Napper.0.13.5 ("Created / Your package was pushed"). The job then failed only because the *.nupkg glob also matched a stale build artifact committed at src/Napper.Cli/nupkg/napper.1.0.0.nupkg — pushing that 403s on the foreign-owned `napper` id. - git rm the committed artifact and gitignore **/nupkg/ + *.nupkg so packed packages are never committed again. - Push only "Nimblesite.Napper.${VERSION}.nupkg" (explicit, version-scoped) instead of a broad glob.
1 parent 5d5b26b commit 180ab85

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,10 +601,11 @@ 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).
604+
# Push ONLY this version's package. A bare *.nupkg glob once also matched a
605+
# stale committed napper.1.0.0.nupkg and 403'd on the foreign-owned `napper` id;
606+
# the artifact is now gitignored, and this explicit path is belt-and-suspenders.
606607
run: |
607-
dotnet nuget push src/Napper.Cli/nupkg/*.nupkg \
608+
dotnet nuget push "src/Napper.Cli/nupkg/Nimblesite.Napper.${VERSION}.nupkg" \
608609
--api-key "${{ steps.nuget_login.outputs.NUGET_API_KEY }}" \
609610
--source https://api.nuget.org/v3/index.json \
610611
--skip-duplicate

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,11 @@ scripts/.too_many_cooks/
113113
__pycache__/
114114

115115
.playwright-mcp/
116+
117+
# =============================================================================
118+
# Build artifacts — NEVER commit packed packages (a stale napper.1.0.0.nupkg
119+
# here once broke the NuGet publish: the push glob matched it and 403'd on the
120+
# foreign-owned `napper` id). dotnet pack regenerates these every release.
121+
# =============================================================================
122+
**/nupkg/
123+
*.nupkg
-1.76 MB
Binary file not shown.

0 commit comments

Comments
 (0)