From 3e0e21489a7d92c637fa0b9d1f533f227b37aa4a Mon Sep 17 00:00:00 2001 From: Andrew Lyu Date: Fri, 13 Feb 2026 14:23:22 -0800 Subject: [PATCH] fix CI --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 671b7a31e..473697ae4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -152,11 +152,14 @@ jobs: - name: Create test project and install from git shell: bash + env: + HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name || github.repository }} + HEAD_REF: ${{ github.head_ref || github.ref_name }} run: | mkdir test-project cd test-project npm init -y # Install from the PR branch (use head repo for fork PRs) - npm install "git+https://github.com/${{ github.event.pull_request.head.repo.full_name || github.repository }}#${{ github.head_ref || github.ref_name }}" + npm install "git+https://github.com/${HEAD_REPO}#${HEAD_REF}" # Verify the package is usable (ESM import) - node --input-type=module -e "import { App } from '@modelcontextprotocol/ext-apps'; console.log('Import successful:', typeof App)" + node --input-type=module -e "import { App } from '@modelcontextprotocol/ext-apps'; console.log('Import successful:', typeof App)" \ No newline at end of file