Skip to content

Commit

Permalink
Upgrade npm to latest version in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
928PJY committed Jul 5, 2022
1 parent fcf2069 commit b7a0a88
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions azure-pipelines-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ steps:
packageType: sdk
version: '5.0.100'

- task: NodeTool@0
displayName: "Use Node 16.x"
inputs:
versionSpec: 16.x

- powershell: |
npm install -g npm-windows-upgrade
npm-windows-upgrade -v 8.13.2
npm -v
displayName: Upgrade npm to latest version

- task: NuGetToolInstaller@1
displayName: 'Use NuGet'
inputs:
Expand Down
11 changes: 11 additions & 0 deletions azure-pipelines-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ steps:
inputs:
versionSpec: 5.9.1

- task: NodeTool@0
displayName: "Use Node 16.x"
inputs:
versionSpec: 16.x

- powershell: |
npm install -g npm-windows-upgrade
npm-windows-upgrade -v 8.13.2
npm -v
displayName: Upgrade npm to latest version

- task: PowerShell@2
displayName: 'dev build'
inputs:
Expand Down

0 comments on commit b7a0a88

Please sign in to comment.