Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix(ci): run pnpm install in every check job so postinstall generates fonts

Sidwebworksfbc995f686a0
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index 384670c16c..3fb9d0a7c0 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -32,8 +32,10 @@ jobs:
packages/*/node_modules
key: node-modules-${{ hashFiles('pnpm-lock.yaml') }}
- - if: steps.node-modules-cache.outputs.cache-hit != 'true'
- run: pnpm install --frozen-lockfile
+ # Always run install (not just on cache miss) so the root postinstall
+ # runs in every job — it generates packages/documents/src/pdf/fonts.data.ts
+ # (gitignored), which typecheck/build need. node_modules cache keeps it fast.
+ - run: pnpm install --frozen-lockfile
lint:
name: Lint
@@ -57,8 +59,10 @@ jobs:
packages/*/node_modules
key: node-modules-${{ hashFiles('pnpm-lock.yaml') }}
- - if: steps.node-modules-cache.outputs.cache-hit != 'true'
- run: pnpm install --frozen-lockfile
+ # Always run install (not just on cache miss) so the root postinstall
+ # runs in every job — it generates packages/documents/src/pdf/fonts.data.ts
+ # (gitignored), which typecheck/build need. node_modules cache keeps it fast.
+ - run: pnpm install --frozen-lockfile
- run: pnpm exec biome check
@@ -84,8 +88,10 @@ jobs:
packages/*/node_modules
key: node-modules-${{ hashFiles('pnpm-lock.yaml') }}
- - if: steps.node-modules-cache.outputs.cache-hit != 'true'
- run: pnpm install --frozen-lockfile
+ # Always run install (not just on cache miss) so the root postinstall
+ # runs in every job — it generates packages/documents/src/pdf/fonts.data.ts
+ # (gitignored), which typecheck/build need. node_modules cache keeps it fast.
+ - run: pnpm install --frozen-lockfile
- run: pnpm run typegen
- run: pnpm run typecheck
@@ -112,8 +118,10 @@ jobs:
packages/*/node_modules
key: node-modules-${{ hashFiles('pnpm-lock.yaml') }}
- - if: steps.node-modules-cache.outputs.cache-hit != 'true'
- run: pnpm install --frozen-lockfile
+ # Always run install (not just on cache miss) so the root postinstall
+ # runs in every job — it generates packages/documents/src/pdf/fonts.data.ts
+ # (gitignored), which typecheck/build need. node_modules cache keeps it fast.
+ - run: pnpm install --frozen-lockfile
- run: pnpm run lingui:check
@@ -139,8 +147,10 @@ jobs:
packages/*/node_modules
key: node-modules-${{ hashFiles('pnpm-lock.yaml') }}
- - if: steps.node-modules-cache.outputs.cache-hit != 'true'
- run: pnpm install --frozen-lockfile
+ # Always run install (not just on cache miss) so the root postinstall
+ # runs in every job — it generates packages/documents/src/pdf/fonts.data.ts
+ # (gitignored), which typecheck/build need. node_modules cache keeps it fast.
+ - run: pnpm install --frozen-lockfile
- run: pnpm test