fix(plugin-types): ActionsAPI.register handler exec-context d.ts (fn-176.1) #6
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| paths: | |
| - "docs-site/**" | |
| - "packages/**" | |
| - "schemas/**" | |
| - ".github/workflows/docs.yml" | |
| workflow_dispatch: | |
| concurrency: | |
| group: docs-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build docs site | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: docs-site/package-lock.json | |
| - name: Install docs-site dependencies | |
| working-directory: docs-site | |
| run: npm ci | |
| # Drift gate: the committed data-driven pages (permission scopes, | |
| # manifest reference, namespace map, …) are generated from | |
| # schemas/ + packages/plugin-types/src/. This regenerates them | |
| # in-memory, byte-compares against the committed files, and verifies | |
| # the recorded input hash (docs-site/generated-docs.hash). Fails the | |
| # build when the type declarations changed but the generated docs | |
| # were not regenerated and committed. | |
| - name: Drift gate — generated docs vs type declarations | |
| working-directory: docs-site | |
| run: npm run check-drift | |
| # Full build: regenerate data pages, run TypeDoc (via | |
| # starlight-typedoc) over packages/*/src, build the Starlight site, | |
| # and emit dist/llms.txt + dist/llms-full.txt. | |
| - name: Build site | |
| working-directory: docs-site | |
| run: npm run build | |
| - name: Upload site artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: docs-site-dist | |
| path: docs-site/dist | |
| retention-days: 14 | |
| # --------------------------------------------------------------------- | |
| # Deploy to Cloudflare Pages (docs.appos.space). | |
| # Pages project: appos-docs. Requires repo secrets CLOUDFLARE_API_TOKEN | |
| # (with "Cloudflare Pages: Edit") + CLOUDFLARE_ACCOUNT_ID. | |
| # --------------------------------------------------------------------- | |
| deploy: | |
| name: Deploy to Cloudflare Pages | |
| needs: build | |
| if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| deployments: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: docs-site-dist | |
| path: docs-site/dist | |
| - name: Deploy | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| command: pages deploy docs-site/dist --project-name=appos-docs |