Skip to content

Commit 9228662

Browse files
andrewlyu-boopAndrew Lyu
andauthored
fix CI (#456)
Co-authored-by: Andrew Lyu <andrewlyu@Andrews-MacBook-Air.local>
1 parent 7046d7b commit 9228662

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,14 @@ jobs:
186186

187187
- name: Create test project and install from git
188188
shell: bash
189+
env:
190+
HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
191+
HEAD_REF: ${{ github.head_ref || github.ref_name }}
189192
run: |
190193
mkdir test-project
191194
cd test-project
192195
npm init -y
193196
# Install from the PR branch (use head repo for fork PRs)
194-
npm install "git+https://github.com/${{ github.event.pull_request.head.repo.full_name || github.repository }}#${{ github.head_ref || github.ref_name }}"
197+
npm install "git+https://github.com/${HEAD_REPO}#${HEAD_REF}"
195198
# Verify the package is usable (ESM import)
196199
node --input-type=module -e "import { App } from '@modelcontextprotocol/ext-apps'; console.log('Import successful:', typeof App)"

0 commit comments

Comments
 (0)