Skip to content

build(deps-dev): bump wrangler from 4.110.0 to 4.112.0 in /mcp (#117) #59

build(deps-dev): bump wrangler from 4.110.0 to 4.112.0 in /mcp (#117)

build(deps-dev): bump wrangler from 4.110.0 to 4.112.0 in /mcp (#117) #59

Workflow file for this run

name: Deploy MCP
# The MCP Worker bundles mcp/src/data.json at build time, generated by
# mcp/scripts/build-data.mjs from the spec + changelog content collections.
# Pages auto-deploy doesn't touch the Worker, so it must be deployed
# separately whenever its bundled data — or its own code — changes.
#
# Trigger only on pushes to main that touch what ends up in the bundle:
# - src/content/spec/** (every topic build-data reads)
# - src/content/changelog/** (feeds get_changes)
# - mcp/** (Worker source, wrangler.toml, build script)
on:
push:
branches: [main]
paths:
- "src/content/spec/**"
- "src/content/changelog/**"
- "mcp/**"
- ".github/workflows/deploy-mcp.yml"
# Never run two deploys at once; cancel an in-flight one if a newer push lands.
concurrency:
group: deploy-mcp
cancel-in-progress: true
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
cache-dependency-path: mcp/package-lock.json
- name: Install MCP dependencies
run: npm ci
working-directory: mcp
# `npm run deploy` runs the predeploy hook (build:data → regenerates
# data.json from the current content) before `wrangler deploy`.
- name: Build data + deploy Worker
run: npm run deploy
working-directory: mcp
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}