mirror of
https://github.com/callstack/agent-device.git
synced 2026-09-14 20:06:34 +08:00
edca35d122
* chore(deps): add Renovate config and enforce packageManager pnpm version in CI Refs #1422 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * chore: bump pnpm to 11.17.0 and format the whole repo with oxfmt format/format:check drop their hand-maintained path list: oxfmt already skips node_modules and honors .gitignore, so the only exclusion list is .oxfmtrc.json ignorePatterns. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(mutation): accept either quote style in the affected-lane path filter Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * chore(deps): keep fixture-app runtime deps as individual Renovate PRs Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Michał Pierzchała <thymikee@gmail.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
66 lines
2.0 KiB
YAML
66 lines
2.0 KiB
YAML
name: Deploy PR previews
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
paths:
|
|
- 'website/**'
|
|
- '.github/actions/build-docs/action.yml'
|
|
- '.github/actions/setup-node-pnpm/action.yml'
|
|
- '.github/workflows/pr-preview.yml'
|
|
- 'package.json'
|
|
- 'pnpm-lock.yaml'
|
|
- 'pnpm-workspace.yaml'
|
|
|
|
concurrency: preview-${{ github.ref }}
|
|
|
|
jobs:
|
|
command-docs-gate:
|
|
# ci.yml ignores website/**, so a docs-only PR never triggers the unit lane
|
|
# that carries the command-reference coverage gate
|
|
# (src/__tests__/command-doc-coverage.test.ts). Run it here — where
|
|
# commands.md changes DO trigger a workflow — so documenting a retired
|
|
# command (or dropping a public command's docs) fails on docs-only PRs too.
|
|
# Unlike deploy-preview this has no fork guard: the gate is read-only and
|
|
# must run on fork docs PRs as well. Coordinates with the #1429 gate manifest.
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
|
|
- name: Setup toolchain
|
|
uses: ./.github/actions/setup-node-pnpm
|
|
|
|
- name: Check command reference doc coverage
|
|
run: pnpm check:command-docs
|
|
|
|
deploy-preview:
|
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
pages: write
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
persist-credentials: true
|
|
|
|
- name: Build docs
|
|
uses: ./.github/actions/build-docs
|
|
with:
|
|
rspress-base: /${{ github.event.repository.name }}/pr-preview/pr-${{ github.event.number }}/
|
|
|
|
- name: Deploy preview
|
|
uses: rossjrw/pr-preview-action@ffa7509e91a3ec8dfc2e5536c4d5c1acdf7a6de9 # v1.8.1
|
|
with:
|
|
source-dir: website/doc_build
|
|
preview-branch: gh-pages
|
|
qr-code: true
|