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): module cache

Sidwebworkse10d99863c1d
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index ddc0eaf024..384670c16c 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -48,6 +48,7 @@ jobs:
cache: pnpm
- uses: actions/cache@v4
+ id: node-modules-cache
with:
path: |
node_modules
@@ -56,6 +57,9 @@ 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
+
- run: pnpm exec biome check
typecheck:
@@ -71,6 +75,7 @@ jobs:
cache: pnpm
- uses: actions/cache@v4
+ id: node-modules-cache
with:
path: |
node_modules
@@ -79,6 +84,9 @@ 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
+
- run: pnpm run typegen
- run: pnpm run typecheck
@@ -95,6 +103,7 @@ jobs:
cache: pnpm
- uses: actions/cache@v4
+ id: node-modules-cache
with:
path: |
node_modules
@@ -103,6 +112,9 @@ 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
+
- run: pnpm run lingui:check
test:
@@ -118,6 +130,7 @@ jobs:
cache: pnpm
- uses: actions/cache@v4
+ id: node-modules-cache
with:
path: |
node_modules
@@ -126,6 +139,9 @@ 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
+
- run: pnpm test
audit: