refactor: refactor Inspector implementation to DOMInspectAgent, support setting custom InspectAgent #528
Workflow file for this run
This file contains 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
# 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://github.com/chalk/supports-color/blob/main/index.js#L21 | |
# https://github.com/chalk/supports-color/blob/main/index.js#L54 | |
FORCE_COLOR: true | |
steps: | |
- name: Checkout | |
# https://github.com/actions/checkout | |
uses: actions/checkout@v3 | |
with: | |
# Number of commits to fetch. 0 indicates all history. | |
fetch-depth: 1 | |
- name: Prepare for building | |
uses: ./.github/actions/prepare | |
- name: Build packages | |
run: | | |
pnpm build:packages | |
# - name: Build examples site | |
# run: | | |
# pnpm build:examples | |
# pnpm build:site | |
- name: Build documentation site | |
run: | | |
pnpm --filter @react-dev-inspector/docs build | |
- name: Deploy site | |
if: ${{ github.ref == 'refs/heads/dev' }} | |
# https://github.com/peaceiris/actions-gh-pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/dist |