Skip to content

Commit 9466285

Browse files
AlexMikhalevclaude
andcommitted
fix(ci): pass GITHUB_TOKEN to npm publish for napi prepublish
napi prepublish needs GITHUB_TOKEN to create GitHub releases. Terraphim AI Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3c05eed commit 9466285

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/publish-bun.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,18 +448,20 @@ jobs:
448448
echo "🎯 Publishing strategy: $VERSION_TYPE -> $NPM_TAG ($REGISTRY)"
449449
450450
- name: Publish to npm (works with Bun)
451+
env:
452+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
451453
run: |
452454
if [[ "${{ inputs.dry_run }}" == "true" ]]; then
453-
echo "🧪 Dry run mode - checking package only"
455+
echo "Dry run mode - checking package only"
454456
npm publish --dry-run --access public --tag ${{ steps.strategy.outputs.npm_tag }}
455457
else
456-
echo "🚀 Publishing @terraphim/autocomplete to npm (Bun-compatible)"
458+
echo "Publishing @terraphim/autocomplete to npm (Bun-compatible)"
457459
echo "Tag: ${{ steps.strategy.outputs.npm_tag }}"
458460
459-
# Publish with appropriate tag
461+
# Publish with appropriate tag (GITHUB_TOKEN needed for napi prepublish)
460462
npm publish --access public --tag ${{ steps.strategy.outputs.npm_tag }}
461463
462-
echo "Package published successfully! (Bun users can install with: bun add @terraphim/autocomplete)"
464+
echo "Package published successfully! (Bun users can install with: bun add @terraphim/autocomplete)"
463465
fi
464466
465467
- name: Verify package for Bun users

0 commit comments

Comments
 (0)