Skip to content

Commit 463f6d9

Browse files
committed
fix(ci): fix npmjs.org publish using wrong registry (was publishing to GitHub Packages)
- Add scope parameter to Setup Node (npmjs.org) step to ensure correct registry - Add E409 error detection for GitHub Packages "Cannot publish over existing version" - Fixes issue where npmjs publish was incorrectly targeting npm.pkg.github.com
1 parent b58f684 commit 463f6d9

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.git-ai/lancedb.tar.gz

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:b30e7f67c4cfed10caec590edb722d7394c9dd1fb6d9631f3c4524242fb84bea
3-
size 314594
2+
oid sha256:0f3f8d0af5e9f05f0d5d1ba1c83a7dcbaddaa70bb80159dc93de0a520732fbb2
3+
size 314715

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ jobs:
117117
if grep -q "You cannot publish over the previously published versions" publish_output.txt; then
118118
echo "::notice::Version already exists on GitHub Packages, skipping"
119119
echo "skipped=true" >> "$GITHUB_OUTPUT"
120+
elif grep -q "Cannot publish over existing version" publish_output.txt; then
121+
echo "::notice::Version already exists on GitHub Packages (E409), skipping"
122+
echo "skipped=true" >> "$GITHUB_OUTPUT"
120123
elif grep -q "^\+ @${{ github.repository_owner }}/git-ai@" publish_output.txt; then
121124
echo "::notice::Successfully published to GitHub Packages"
122125
echo "skipped=false" >> "$GITHUB_OUTPUT"
@@ -142,6 +145,7 @@ jobs:
142145
with:
143146
node-version: "22"
144147
registry-url: "https://registry.npmjs.org"
148+
scope: "@mars167"
145149

146150
- name: Publish to npmjs.org
147151
if: ${{ env.RELEASE_TAG != '' }}

0 commit comments

Comments
 (0)