Skip to content

Commit 9a290c3

Browse files
committed
build
1 parent 9f8d77b commit 9a290c3

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/build.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
test:
9+
name: Test
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [18, 20]
14+
fail-fast: true
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- run: yarn install --immutable
21+
- run: yarn run build
22+
- run: yarn run check
23+
pack:
24+
name: Pack
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: actions/setup-node@v3
29+
- run: yarn install --immutable
30+
- run: yarn run pack
31+
docs:
32+
name: Docs
33+
runs-on: ubuntu-latest
34+
strategy:
35+
matrix:
36+
repo-type:
37+
- monorepo
38+
- monorepo-1
39+
- monorepo-reexports
40+
- polyrepo
41+
- polyrepo-deep
42+
- polyrepo-multi
43+
fail-fast: true
44+
env:
45+
NODE_ENV: production
46+
steps:
47+
- uses: actions/checkout@v3
48+
- uses: actions/setup-node@v3
49+
- run: yarn install --immutable
50+
- run: yarn run build
51+
- run: yarn workspace website run build
52+
env:
53+
DOCS_REPO_TYPE: ${{ matrix.repo-type }}

0 commit comments

Comments
 (0)