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.
This commit is contained in:
2026-03-01 06:54:32 +00:00
parent 3e68e8871d
commit be2205a81c
5 changed files with 10 additions and 10 deletions

View File

@@ -33,10 +33,10 @@ jobs:
cd $GITHUB_WORKSPACE cd $GITHUB_WORKSPACE
- name: Install deps - 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 - 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 - name: Test
run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npm test run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npm test

View File

@@ -16,10 +16,10 @@ jobs:
cd $GITHUB_WORKSPACE cd $GITHUB_WORKSPACE
- name: Install deps - 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 - 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 - name: Test
run: cd $GITHUB_WORKSPACE/products/03-alert-intelligence && npm test run: cd $GITHUB_WORKSPACE/products/03-alert-intelligence && npm test

View File

@@ -16,10 +16,10 @@ jobs:
cd $GITHUB_WORKSPACE cd $GITHUB_WORKSPACE
- name: Install deps - 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 - 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 - name: Test
run: cd $GITHUB_WORKSPACE/products/04-lightweight-idp && npm test run: cd $GITHUB_WORKSPACE/products/04-lightweight-idp && npm test

View File

@@ -16,10 +16,10 @@ jobs:
cd $GITHUB_WORKSPACE cd $GITHUB_WORKSPACE
- name: Install deps - 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 - 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 - name: Test
run: cd $GITHUB_WORKSPACE/products/05-aws-cost-anomaly && npm test run: cd $GITHUB_WORKSPACE/products/05-aws-cost-anomaly && npm test

View File

@@ -16,10 +16,10 @@ jobs:
cd $GITHUB_WORKSPACE cd $GITHUB_WORKSPACE
- name: Install deps - 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 - 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 - name: Test
run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && npm test run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && npm test