Skip to content

不適切なuseEffectの使用にコメントを追加 #115

不適切なuseEffectの使用にコメントを追加

不適切なuseEffectの使用にコメントを追加 #115

name: mobile / preview
on:
pull_request:
paths:
- "mobile/**"
- "common/**"
- ".github/workflows/mobile-cloudflare-preview.yml"
defaults:
run:
working-directory: ./mobile
permissions:
contents: read
deployments: write
jobs:
build_and_deploy:
name: Deploy to Cloudflare Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('./bun.lockb') }}
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: bun install --frozen-lockfile
- run: bun run build
env:
VITE_SOHOSAI_VOTE_URL: ${{ secrets.VITE_SOHOSAI_VOTE_URL }}
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: cafeore-2024
directory: build/client
# Optional: Enable this if you want to have GitHub Deployments triggered
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# Optional: Switch what branch you are publishing to.
# By default this will be the branch which triggered this workflow
# branch: main
# Optional: Change the working directory
workingDirectory: mobile
# Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta`
wranglerVersion: '3'