Skip to content
This repository was archived by the owner on Apr 13, 2026. It is now read-only.

Merge pull request #1 from ethereumfollowprotocol/workflow #8

Merge pull request #1 from ethereumfollowprotocol/workflow

Merge pull request #1 from ethereumfollowprotocol/workflow #8

Workflow file for this run

name: Deploy to Cloudflare Workers
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run type check
run: npm run type-check
- name: Deploy to Cloudflare Workers
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: deploy
# Only deploy on push to main, not on pull requests
if: github.event_name == 'push' && github.ref == 'refs/heads/main'