Skip to content

chore: update website URL #31

chore: update website URL

chore: update website URL #31

Workflow file for this run

name: CI (Typecheck & Lint & Deploy)
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: Install dependencies
run: npm install
- name: Linting check
run: npm run lint
- name: Prettier check
run: npm run prettier:check
- name: Typecheck app
run: npm run typecheck
- name: Publish to Cloudflare Workers Sites
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: |
mkdir -p ~/.wrangler/config/
echo "api_token=\"${CLOUDFLARE_API_TOKEN}\"" > ~/.wrangler/config/default.toml
npm run deploy