Skip to content

fix: emit TFJS binary shard in build; Vite doesn't follow model.json … #16

fix: emit TFJS binary shard in build; Vite doesn't follow model.json …

fix: emit TFJS binary shard in build; Vite doesn't follow model.json … #16

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
packages: read
concurrency:
group: pages
cancel-in-progress: false
jobs:
e2e:
runs-on: ubuntu-24.04
timeout-minutes: 30
container:
image: mcr.microsoft.com/playwright:v1.60.0-noble
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: pnpm build
- name: E2E Tests
env:
PLAYWRIGHT_BROWSERS_PATH: /ms-playwright
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CI: true
run: pnpm test:ui:ci
- name: Upload Playwright report
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
retention-days: 7
deploy:
# needs: e2e
runs-on: ubuntu-24.04
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: pnpm build
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: dist/
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4