-
Notifications
You must be signed in to change notification settings - Fork 69
53 lines (44 loc) · 1.26 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# 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
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://github.com/peaceiris/actions-gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/dist