--- # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json name: Test Docs deployment on: pull_request: branches: - develop paths: - 'docs/**' - 'gen-docs/**' permissions: contents: read concurrency: group: docs-pr-${{ github.ref }} cancel-in-progress: true jobs: test-deploy: name: Test deployment runs-on: ubuntu-24.04 permissions: contents: read steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: fetch-depth: 0 persist-credentials: false - name: Set up Node.js uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 with: node-version-file: package.json package-manager-cache: false - name: Pnpm Setup uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 - name: Get pnpm store directory shell: sh run: | echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - name: Setup pnpm cache uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: ${{ env.STORE_PATH }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- - name: Install dependencies run: | cd gen-docs pnpm install --frozen-lockfile - name: Build website run: | cd gen-docs pnpm build