- Switch npm install -> npm ci in ci.yml (build, build-wsl) and docs.yml to fail on lockfile drift rather than silently tolerating it - Add cache: npm to all setup-node steps that have a lockfile to hash (skipped test-git-install which has no checkout, and WSL which has no setup-node action) - Add TypeDoc link validation step after build (Linux x64 only, matching existing single-OS gate pattern for MCPB). Verified passing on main. - Align all workflows on Node 22 (active LTS) — previously CI used 20 but publish workflows used 22, so releases were tested on a different Node than PRs - Add engines.node >=20 to package.json so consumers on Node 18 get a warning
30 lines
675 B
YAML
30 lines
675 B
YAML
name: Deploy Documentation
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: oven-sh/setup-bun@v2
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version: "22"
|
|
cache: npm
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npm run docs
|
|
- uses: peaceiris/actions-gh-pages@v4
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./docs
|
|
publish_branch: gh-pages
|
|
keep_files: true
|
|
cname: apps.extensions.modelcontextprotocol.io
|