* fix(dashboard): repair lesson nav build and improve locked feedback Replace stale $isOrgStudent reference with isCourseLearnerView to fix the Svelte build error. Disable prev/next when the adjacent item is locked, show lock tooltips, and surface a snackbar if navigation is blocked (including keyboard shortcuts). Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> * ci: add package build check and AGENTS.md verification steps Document required dashboard/API build commands for agents and add a GitHub Actions workflow that runs those builds on PRs touching apps or packages. Copy dashboard .env.example in CI so vite build has required public env vars. Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com>
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
name: Package build check
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'apps/dashboard/**'
|
|
- 'apps/api/**'
|
|
- 'packages/**'
|
|
- 'pnpm-lock.yaml'
|
|
- 'package.json'
|
|
- 'turbo.json'
|
|
- '.nvmrc'
|
|
- '.github/workflows/package-build-check.yml'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'apps/dashboard/**'
|
|
- 'apps/api/**'
|
|
- 'packages/**'
|
|
- 'pnpm-lock.yaml'
|
|
- 'package.json'
|
|
- 'turbo.json'
|
|
- '.nvmrc'
|
|
- '.github/workflows/package-build-check.yml'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Prepare dashboard env
|
|
run: cp apps/dashboard/.env.example apps/dashboard/.env
|
|
|
|
- name: Build dashboard
|
|
run: pnpm --filter @cio/dashboard^... build && pnpm --filter @cio/dashboard build
|
|
|
|
- name: Build API
|
|
run: pnpm --filter @cio/api^... build && pnpm --filter @cio/api build
|