fix: MCP repository field + idempotent publish #33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Verify spec matches upstream pinned tag | |
| run: pnpm run check-drift | |
| - name: Verify generated SDK is up to date | |
| run: | | |
| pnpm run generate | |
| stale=0 | |
| if ! git diff --quiet packages/sdk/src/generated; then | |
| echo "openapi-ts generated files are stale" | |
| stale=1 | |
| fi | |
| if ! git diff --quiet packages/sdk/src/version.gen.ts; then | |
| echo "version.gen.ts is stale (run 'pnpm run gen-version')" | |
| stale=1 | |
| fi | |
| if [ "$stale" -ne 0 ]; then | |
| git diff packages/sdk/src/generated packages/sdk/src/version.gen.ts | |
| exit 1 | |
| fi | |
| - name: Verify every operation has a facade binding | |
| run: pnpm run check-coverage | |
| # Build first so downstream packages (mcp) can resolve @modernrelay/omnigraph | |
| # types from the SDK's dist/ when typechecking. | |
| - run: pnpm run build | |
| - run: pnpm run typecheck | |
| - run: pnpm run test |