Skip to content

Merge pull request #51 from Trailgenic/codex/create-draft-pr-for-cont… #18

Merge pull request #51 from Trailgenic/codex/create-draft-pr-for-cont…

Merge pull request #51 from Trailgenic/codex/create-draft-pr-for-cont… #18

Workflow file for this run

name: Deploy Tool Registry
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: deploy-tool-registry-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
name: Verify then deploy tool-registry Worker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '22'
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run validate:json
- run: npm test
- run: npm run test:workers
- run: npm run validate:registry
- run: npm run wrangler:dry-run
- run: git diff --check
- name: Deploy tool-registry only
uses: cloudflare/wrangler-action@v4
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
wranglerVersion: '4'
command: deploy --config tool-registry/wrangler.jsonc
- name: Allow Cloudflare deployment propagation
run: sleep 25
- name: Run live acceptance harness
run: node scripts/live-acceptance.mjs