Skip to content

feat(mcp): support custom base URLs via environment variables #4038

feat(mcp): support custom base URLs via environment variables

feat(mcp): support custom base URLs via environment variables #4038

name: Worker Build Precheck
on:
push:
branches:
- "main"
pull_request:
branches:
- "**"
types: [opened, synchronize, reopened, ready_for_review]
jobs:
worker-build-precheck:
name: Worker Build Precheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
cache-dependency-path: worker/yarn.lock
- name: Install
working-directory: worker
run: yarn install
- name: Check types are up-to-date
working-directory: worker
run: |
# Generate types and check if there are any changes
yarn cf-typegen
if git diff --exit-code worker-configuration.d.ts; then
echo "✅ worker-configuration.d.ts is up-to-date"
else
echo "❌ worker-configuration.d.ts is outdated!"
echo "Please run 'yarn cf-typegen' in the worker directory and commit the changes."
git diff worker-configuration.d.ts
exit 1
fi
- name: Build
working-directory: worker
run: yarn tsc