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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user