fix: fix inspector package exports for ESModule #526
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 |