Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
daimor committed Dec 15, 2024
1 parent 9f8d77b commit 9a290c3
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
fail-fast: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --immutable
- run: yarn run build
- run: yarn run check
pack:
name: Pack
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: yarn install --immutable
- run: yarn run pack
docs:
name: Docs
runs-on: ubuntu-latest
strategy:
matrix:
repo-type:
- monorepo
- monorepo-1
- monorepo-reexports
- polyrepo
- polyrepo-deep
- polyrepo-multi
fail-fast: true
env:
NODE_ENV: production
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: yarn install --immutable
- run: yarn run build
- run: yarn workspace website run build
env:
DOCS_REPO_TYPE: ${{ matrix.repo-type }}

0 comments on commit 9a290c3

Please sign in to comment.