fix CI (#456)
Co-authored-by: Andrew Lyu <andrewlyu@Andrews-MacBook-Air.local>
This commit is contained in:
parent
7046d7b1dc
commit
9228662557
1 changed files with 4 additions and 1 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
|
@ -186,11 +186,14 @@ jobs:
|
||||||
|
|
||||||
- name: Create test project and install from git
|
- name: Create test project and install from git
|
||||||
shell: bash
|
shell: bash
|
||||||
|
env:
|
||||||
|
HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
|
||||||
|
HEAD_REF: ${{ github.head_ref || github.ref_name }}
|
||||||
run: |
|
run: |
|
||||||
mkdir test-project
|
mkdir test-project
|
||||||
cd test-project
|
cd test-project
|
||||||
npm init -y
|
npm init -y
|
||||||
# Install from the PR branch (use head repo for fork PRs)
|
# 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)
|
# 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)"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue