Skip to content

chore: readmes

chore: readmes #495

Workflow file for this run

name: Cloudflare Deploy React Widget
on:
push:
branches:
- main
- dev
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: corepack enable
- uses: actions/setup-node@v4
with:
cache: yarn
node-version: 18
- run: yarn install --immutable
- run: yarn build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: sygma-react-widget
directory: ./examples/react-widget-app/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}