* chore(repo): migrate to pnpm * chore(repo): cleanup pnpm integration with turbo * chore(repo): run lint * chore(repo): cleanup tsconfigs * chore: align TypeScript to 5.8.3 across monorepo; update pnpm override and catalog; pnpm install to update lockfile * chore(repo): revert logger.ts changes * fix: type errors * fix: build errors * fix: pnpm home setup in dockerfiles --------- Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com> Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
name: Build and lint web apps
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches: ["preview"]
|
|
types:
|
|
[
|
|
"opened",
|
|
"synchronize",
|
|
"ready_for_review",
|
|
"review_requested",
|
|
"reopened",
|
|
]
|
|
paths:
|
|
- "**.tsx?"
|
|
- "**.jsx?"
|
|
- "**.css"
|
|
- "**.json"
|
|
- "!apps/api/**"
|
|
|
|
jobs:
|
|
build-and-lint:
|
|
name: Build and lint web apps
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 25
|
|
if: |
|
|
github.event.pull_request.draft == false &&
|
|
github.event.pull_request.requested_reviewers != null
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: ".nvmrc"
|
|
|
|
- name: Enable Corepack and pnpm
|
|
run: corepack enable pnpm
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Lint web apps
|
|
run: pnpm run check:lint
|
|
|
|
- name: Check format
|
|
run: pnpm run check:format
|
|
|
|
- name: Build apps
|
|
run: pnpm run build
|