Skip to content

Call login API endpoint #2622

Call login API endpoint

Call login API endpoint #2622

Workflow file for this run

name: Frontend Preview
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
permissions:
contents: read
deployments: write
concurrency:
group: preview-${{ github.ref }}
cancel-in-progress: false
jobs:
deploy:
name: Deploy
environment:
name: preview
url: ${{ steps.deploy.outputs.deployment-url }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Build with MSW
run: npm run build:msw
- name: Build Ladle
run: npm run build:ladle
- name: Deploy
id: deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.API_TOKEN }}
accountId: ${{ secrets.ACCOUNT_ID }}
command: pages deploy dist --project-name=${{ vars.PROJECT_NAME }} --branch ${{ github.head_ref || github.ref_name }} --commit-hash ${{ github.sha }}
workingDirectory: frontend
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: frontend/dist