Skip to content

docs: correct nextjs integration error handle #559

docs: correct nextjs integration error handle

docs: correct nextjs integration error handle #559

Workflow file for this run

# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: Build for commit
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
env:
# https:/chalk/supports-color/blob/main/index.js#L21
# https:/chalk/supports-color/blob/main/index.js#L54
FORCE_COLOR: true
steps:
- name: Checkout
# https:/actions/checkout
uses: actions/checkout@v3
with:
# Number of commits to fetch. 0 indicates all history.
fetch-depth: 1
lfs: true
- name: Prepare for building
uses: ./.github/actions/prepare
- name: Build packages
run: |
pnpm build:packages
- name: Build examples
run: |
pnpm build:examples
- name: Build documentation site
run: |
pnpm --filter @react-dev-inspector/docs build
- name: Deploy site
if: ${{ github.ref == 'refs/heads/dev' }}
# https:/peaceiris/actions-gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/dist