From 68b379e6b558cd3e39384c042ed0ec9bd5c1fea5 Mon Sep 17 00:00:00 2001 From: Hammed Abass Date: Thu, 16 Jul 2026 20:10:50 +0200 Subject: [PATCH] ci(docs): validate typecheck and production build --- .github/workflows/docs.yml | 47 ++++++++++++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 48 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..8fa433c --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,47 @@ +name: Docs website + +on: + pull_request: + paths: + - "docs/**" + - ".github/workflows/docs.yml" + push: + branches: + - master + paths: + - "docs/**" + - ".github/workflows/docs.yml" + +permissions: + contents: read + +concurrency: + group: docs-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + quality: + runs-on: ubuntu-latest + timeout-minutes: 15 + defaults: + run: + working-directory: docs + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "22" + cache: npm + cache-dependency-path: docs/package-lock.json + + - name: Install dependencies + run: npm ci + + - name: Type-check + run: npm run typecheck + + - name: Build + run: npm run build diff --git a/.gitignore b/.gitignore index 94459d4..1bab3e9 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ target/ # Local design export scratch output/ +.screenshots