Skip to content

Commit cc89827

Browse files
authored
[TypeSpec CI] Pass "--no" to ensure npx does not install anything (#24345)
1 parent db533f7 commit cc89827

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

eng/pipelines/templates/steps/typespec-ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ steps:
1212
exit_code=0
1313
1414
pushd ${{parameters.Folder}}
15-
npx tsp compile . --warn-as-error || exit_code=1
15+
16+
# Pass "--no" to ensure npx does not install anything (TypeSpec compiler should already be installed)
17+
npx --no tsp compile . --warn-as-error || exit_code=1
18+
1619
# Format parent folder to include shared files (disabled until formatting diffs are fixed)
1720
# npx tsp format ../**/*.tsp
21+
1822
popd
1923
2024
# If any files are added, changed, or deleted, print diff and return error

eng/pipelines/typespec-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727

2828
- script: npm ls -a
2929
displayName: npm ls -a
30+
condition: succeededOrFailed()
3031

3132
- template: templates/steps/typespec-ci.yml
3233
parameters:

0 commit comments

Comments
 (0)