build(deps): bump the github-actions group across 1 directory with 2 updates #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docs | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| paths: | |
| - doc/** | |
| - .github/actions/setup-node-pnpm/action.yml | |
| - .github/workflows/ci.yml | |
| - .github/workflows/docs.yml | |
| - package.json | |
| - pnpm-lock.yaml | |
| - pnpm-workspace.yaml | |
| - turbo.json | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - doc/** | |
| - .github/actions/setup-node-pnpm/action.yml | |
| - .github/workflows/ci.yml | |
| - .github/workflows/docs.yml | |
| - package.json | |
| - pnpm-lock.yaml | |
| - pnpm-workspace.yaml | |
| - turbo.json | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: docs-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| docs-site-check: | |
| if: github.event_name != 'pull_request' || github.event.pull_request.draft == false | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ./.github/actions/setup-node-pnpm | |
| with: | |
| install-filter: "@truenine/memory-sync-docs..." | |
| - name: Validate docs content | |
| run: pnpm -C doc run validate:content | |
| - name: Lint docs | |
| run: pnpm -C doc run lint | |
| - name: Typecheck docs | |
| run: pnpm -C doc run check:type | |
| - name: Build docs | |
| run: pnpm -C doc run build | |
| deploy-docs: | |
| needs: docs-site-check | |
| if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| env: | |
| VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ./.github/actions/setup-node-pnpm | |
| with: | |
| install-filter: "@truenine/memory-sync-docs..." | |
| - name: Preflight Vercel secrets | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| if [[ -z "${VERCEL_TOKEN:-}" ]]; then | |
| echo "::error::VERCEL_TOKEN is missing." | |
| exit 1 | |
| fi | |
| if [[ -z "${VERCEL_ORG_ID:-}" ]]; then | |
| echo "::error::VERCEL_ORG_ID is missing." | |
| exit 1 | |
| fi | |
| if [[ -z "${VERCEL_PROJECT_ID:-}" ]]; then | |
| echo "::error::VERCEL_PROJECT_ID is missing." | |
| exit 1 | |
| fi | |
| - name: Pull Vercel production settings | |
| run: pnpm dlx vercel@latest pull --yes --environment=production --token="$VERCEL_TOKEN" | |
| - name: Build docs on Vercel | |
| run: pnpm dlx vercel@latest build --prod --token="$VERCEL_TOKEN" | |
| - name: Deploy docs to Vercel production | |
| run: pnpm dlx vercel@latest deploy --prebuilt --prod --token="$VERCEL_TOKEN" |