Skip to content

Commit 44eef55

Browse files
Remove Disable Corepack, use npx for pnpm
1 parent a3b2a32 commit 44eef55

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

eng/common/pipelines/ci.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,17 @@ extends:
3232

3333
- template: /eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml
3434

35-
- script: npm install -g pnpm # Pnpm manage-package-manager-versions will respect packageManager field
36-
displayName: Install pnpm
37-
38-
- script: corepack disable
39-
displayName: Disable Corepack
40-
41-
- script: pnpm install
35+
- script: |
36+
corepack disable
37+
npx pnpm install
4238
displayName: Install JavaScript Dependencies
4339
4440
- script: node $(Build.SourcesDirectory)/eng/common/scripts/resolve-target-branch.js
4541
displayName: Resolve target branch
4642

47-
- script: pnpm tsx ./eng/common/scripts/dispatch-area-triggers.ts --target-branch $(TARGET_BRANCH)
43+
- script: |
44+
corepack disable
45+
npx pnpm tsx ./eng/common/scripts/dispatch-area-triggers.ts --target-branch $(TARGET_BRANCH)
4846
displayName: "Analyze PR changes"
4947
name: InitStep
5048

0 commit comments

Comments
 (0)