From be2205a81cd3b406e2aa83e3d96b1366044483df Mon Sep 17 00:00:00 2001 From: Max Mayfield Date: Sun, 1 Mar 2026 06:54:32 +0000 Subject: [PATCH] Fix CI: use npm ci --include=dev and node_modules/.bin/tsc to avoid global shim NAS runner's npx tsc resolves to a global shim that says 'This is not the tsc command you are looking for'. Using the local binary directly fixes it. --- .gitea/workflows/ci-p2-drift.yml | 4 ++-- .gitea/workflows/ci-p3-alert.yml | 4 ++-- .gitea/workflows/ci-p4-portal.yml | 4 ++-- .gitea/workflows/ci-p5-cost.yml | 4 ++-- .gitea/workflows/ci-p6-run.yml | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/ci-p2-drift.yml b/.gitea/workflows/ci-p2-drift.yml index a53b511..3364d98 100644 --- a/.gitea/workflows/ci-p2-drift.yml +++ b/.gitea/workflows/ci-p2-drift.yml @@ -33,10 +33,10 @@ jobs: cd $GITHUB_WORKSPACE - name: Install deps - run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npm ci + run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npm ci --include=dev - name: Type check - run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npx tsc --noEmit + run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && ./node_modules/.bin/tsc --noEmit - name: Test run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npm test diff --git a/.gitea/workflows/ci-p3-alert.yml b/.gitea/workflows/ci-p3-alert.yml index d933522..bd02856 100644 --- a/.gitea/workflows/ci-p3-alert.yml +++ b/.gitea/workflows/ci-p3-alert.yml @@ -16,10 +16,10 @@ jobs: cd $GITHUB_WORKSPACE - name: Install deps - run: cd $GITHUB_WORKSPACE/products/03-alert-intelligence && npm ci + run: cd $GITHUB_WORKSPACE/products/03-alert-intelligence && npm ci --include=dev - name: Type check - run: cd $GITHUB_WORKSPACE/products/03-alert-intelligence && npx tsc --noEmit + run: cd $GITHUB_WORKSPACE/products/03-alert-intelligence && ./node_modules/.bin/tsc --noEmit - name: Test run: cd $GITHUB_WORKSPACE/products/03-alert-intelligence && npm test diff --git a/.gitea/workflows/ci-p4-portal.yml b/.gitea/workflows/ci-p4-portal.yml index 2114cc7..7f59dfa 100644 --- a/.gitea/workflows/ci-p4-portal.yml +++ b/.gitea/workflows/ci-p4-portal.yml @@ -16,10 +16,10 @@ jobs: cd $GITHUB_WORKSPACE - name: Install deps - run: cd $GITHUB_WORKSPACE/products/04-lightweight-idp && npm ci + run: cd $GITHUB_WORKSPACE/products/04-lightweight-idp && npm ci --include=dev - name: Type check - run: cd $GITHUB_WORKSPACE/products/04-lightweight-idp && npx tsc --noEmit + run: cd $GITHUB_WORKSPACE/products/04-lightweight-idp && ./node_modules/.bin/tsc --noEmit - name: Test run: cd $GITHUB_WORKSPACE/products/04-lightweight-idp && npm test diff --git a/.gitea/workflows/ci-p5-cost.yml b/.gitea/workflows/ci-p5-cost.yml index d7a01fd..798f71f 100644 --- a/.gitea/workflows/ci-p5-cost.yml +++ b/.gitea/workflows/ci-p5-cost.yml @@ -16,10 +16,10 @@ jobs: cd $GITHUB_WORKSPACE - name: Install deps - run: cd $GITHUB_WORKSPACE/products/05-aws-cost-anomaly && npm ci + run: cd $GITHUB_WORKSPACE/products/05-aws-cost-anomaly && npm ci --include=dev - name: Type check - run: cd $GITHUB_WORKSPACE/products/05-aws-cost-anomaly && npx tsc --noEmit + run: cd $GITHUB_WORKSPACE/products/05-aws-cost-anomaly && ./node_modules/.bin/tsc --noEmit - name: Test run: cd $GITHUB_WORKSPACE/products/05-aws-cost-anomaly && npm test diff --git a/.gitea/workflows/ci-p6-run.yml b/.gitea/workflows/ci-p6-run.yml index 57b5997..3701b91 100644 --- a/.gitea/workflows/ci-p6-run.yml +++ b/.gitea/workflows/ci-p6-run.yml @@ -16,10 +16,10 @@ jobs: cd $GITHUB_WORKSPACE - name: Install deps - run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && npm ci + run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && npm ci --include=dev - name: Type check - run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && npx tsc --noEmit + run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && ./node_modules/.bin/tsc --noEmit - name: Test run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && npm test