Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use npm directly #4086

Merged
merged 4 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions jobs/cg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,23 +80,18 @@ extends:
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@3
displayName: Use Yarn 1.x

- task: Npm@0
displayName: npm install vsce
inputs:
arguments: -g @vscode/vsce
- script: npm install -g @vscode/vsce
displayName: 'install vsce'

- task: CmdLine@2
displayName: Run VSCE to package vsix
inputs:
script: |-
echo Building VSIX
vsce package --yarn -o $(Build.StagingDirectory)\cmake-tools.vsix

- task: Npm@0
displayName: npm uninstall vsce
inputs:
command: uninstall
arguments: -g @vscode/vsce

- script: npm uninstall -g @vscode/vsce
displayName: 'uninstall vsce'

- task: DeleteFiles@1
displayName: Remove non-source code
Expand Down
4 changes: 1 addition & 3 deletions jobs/release/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ extends:
displayName: 'Use Node 20.x'
inputs:
versionSpec: 20.x
- task: Npm@0
- script: npm install -g @vscode/vsce
displayName: 'install vsce'
inputs:
arguments: '-g @vscode/vsce'
- task: AzureCLI@2
displayName: 'Generate AAD_TOKEN'
inputs:
Expand Down
4 changes: 1 addition & 3 deletions jobs/release/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,8 @@ extends:
displayName: 'Use Node 20.x'
inputs:
versionSpec: 20.x
- task: Npm@0
- script: npm install -g @vscode/vsce
displayName: 'install vsce'
inputs:
arguments: '-g @vscode/vsce'
- task: AzureCLI@2
displayName: 'Generate AAD_TOKEN'
inputs:
Expand Down
6 changes: 2 additions & 4 deletions jobs/shared/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ steps:
displayName: IF EXIST %SYSTEMDRIVE%\Users\%USERNAME%\.npmrc del %SYSTEMDRIVE%\Users\%USERNAME%\.npmrc
inputs:
script: IF EXIST %SYSTEMDRIVE%\Users\%USERNAME%\.npmrc del %SYSTEMDRIVE%\Users\%USERNAME%\.npmrc
- task: Npm@0
displayName: npm install VSCE
inputs:
arguments: -g @vscode/vsce
- script: npm install -g @vscode/vsce
displayName: 'install vsce'
- task: PowerShell@2
displayName: Set build name
inputs:
Expand Down
Loading