mirror of
https://github.com/hanzoai/app.git
synced 2026-10-31 18:04:19 +00:00
@hanzo/mod joins it beside the app (HIP-0528 §10), so the package that was the repository's root is one directory of it. Commands run over every package from the root; publish.yml publishes each package whose version npm does not serve, the contract before the app. Nothing a host imports changes.
19 lines
639 B
YAML
19 lines
639 B
YAML
# Hanzo CI/CD. Packages, not images: the gate is each package's typecheck, design
|
|
# lint, tests and build, and npm is where they ship (.github/workflows/publish.yml).
|
|
test:
|
|
- name: build
|
|
run: |
|
|
set -e
|
|
corepack enable
|
|
pnpm install --frozen-lockfile
|
|
pnpm typecheck
|
|
pnpm lint:design
|
|
pnpm test
|
|
pnpm build
|
|
# Each package's root loads in plain Node, as publish.yml checks before it ships.
|
|
for dir in pkg/*/; do
|
|
test -s "${dir}dist/index.js"
|
|
test -s "${dir}dist/index.d.ts"
|
|
(cd "$dir" && node --input-type=module -e "await import('./dist/index.js')")
|
|
done
|