Skip to content

chore: remove unused React dependencies #30675

chore: remove unused React dependencies

chore: remove unused React dependencies #30675

name: Deploy Preview (fork)

Check warning on line 1 in .github/workflows/deploy_preview_forks.yml

View workflow run for this annotation

GitHub Actions / Deploy Preview (fork)

Workflow execution policy warning (evaluate mode)

On December 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on:
pull_request_target:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
vrt-reports:
if: ${{ github.repository != github.event.pull_request.head.repo.full_name }}
uses: ./.github/workflows/vrt-reports.yml
aat-reports:
if: ${{ github.repository != github.event.pull_request.head.repo.full_name }}
uses: ./.github/workflows/aat-reports.yml
build:
# target repository for pull_request is different from source repository
if: ${{ always() && github.repository != github.event.pull_request.head.repo.full_name }}
needs: [vrt-reports, aat-reports]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: Set up Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build docs preview
run: npm run build:docs:preview
- name: Download VRT reports
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333
with:
name: vrt
path: docs/public/vrt
- name: Download AAT reports
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333
with:
name: aat
path: docs/public/aat
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9
with:
name: github-pages
path: docs/public
deploy-preview:
if: ${{ always() && github.repository != github.event.pull_request.head.repo.full_name }}
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
outputs:
deployment_url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346
with:
preview: true