Skip to content

Merge pull request #45 from thailt-2980/chore_add_type_params #65

Merge pull request #45 from thailt-2980/chore_add_type_params

Merge pull request #45 from thailt-2980/chore_add_type_params #65

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy to Cloudflare Workers
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: ⎔ Cache node_modules
uses: actions/cache@v3
env:
cache-name: node_modules-16x
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}
- name: 📥 Download deps
run: yarn install --frozen-lockfile
- name: 🧶 Publish worker to Cloudflare
uses: cloudflare/wrangler-action@v3.3.1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: publish --env production