fix: patch broken windows install (#434)

This commit is contained in:
Charles Packer
2025-12-30 22:29:32 -08:00
committed by GitHub
parent 0d72e2bbe2
commit 87fe33dddc
2 changed files with 19 additions and 7 deletions

View File

@@ -98,6 +98,24 @@ jobs:
echo "✓ Bundle size is acceptable"
fi
# Test npm install flow with native shell to catch shebang issues
# This uses PowerShell on Windows (not Git Bash) to match real user experience
- name: Test npm install flow (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
npm pack
npm install -g (Get-Item letta-ai-letta-code-*.tgz).FullName
letta --help
- name: Test npm install flow (Unix)
if: runner.os != 'Windows'
shell: sh
run: |
npm pack
npm install -g ./letta-ai-letta-code-*.tgz
letta --help
- name: Headless smoke test (API)
# Only run on push to main or PRs from the same repo (not forks, to protect secrets)
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}