File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 66 displayName : Download signed artifacts
77
88- pwsh : |
9- npm install -g vsce
10- vsce publish --packagePath $(Pipeline.Workspace)/powershell-*.vsix --pat $(VsceToken)
9+ npm ci --loglevel=error
10+ npm run publish -- -- packagePath $(Pipeline.Workspace)/vscode-powershell /powershell-*.vsix --pat $(VsceToken)
1111 displayName : Publishing VSIX to VS Code Marketplace
1212
1313# NOTE: We rarely update this script, so we can ignore errors from the gallery
1414# caused by us trying to re-publish an updated script.
1515- pwsh : |
16- Publish-Script -Path $(Pipeline.Workspace)/Install-VSCode.ps1 -ErrorAction Continue -NuGetApiKey $(GalleryToken)
16+ Publish-Script -Path $(Pipeline.Workspace)/vscode-powershell/ Install-VSCode.ps1 -ErrorAction Continue -NuGetApiKey $(GalleryToken)
1717 displayName : Publishing Install-VSCode.ps1 to PowerShell Gallery
Original file line number Diff line number Diff line change 8181 "scripts" : {
8282 "compile" : " tsc -v && tsc -p ./ && tslint -p ./" ,
8383 "compile-watch" : " tsc -watch -p ./" ,
84- "test" : " node ./out/test/runTests.js"
84+ "test" : " node ./out/test/runTests.js" ,
85+ "package" : " vsce package --no-gitHubIssueLinking" ,
86+ "publish" : " vsce publish"
8587 },
8688 "contributes" : {
8789 "breakpoints" : [
Original file line number Diff line number Diff line change @@ -27,8 +27,11 @@ task Restore -If { !(Test-Path "$PSScriptRoot/node_modules") } {
2727 Write-Host " `n ### Restoring vscode-powershell dependencies`n " - ForegroundColor Green
2828 # When in a CI build use the --loglevel=error parameter so that
2929 # package install warnings don't cause PowerShell to throw up
30- $logLevelParam = if ($env: TF_BUILD ) { " --loglevel=error" } else { " " }
31- exec { & npm install $logLevelParam }
30+ if ($env: TF_BUILD ) {
31+ exec { & npm ci -- loglevel= error }
32+ } else {
33+ exec { & npm install }
34+ }
3235}
3336
3437
@@ -106,7 +109,7 @@ task UpdateReadme -If { $script:IsPreviewExtension } {
106109task Package UpdateReadme, {
107110 assert { Test-Path ./ modules/ PowerShellEditorServices }
108111 Write-Host " `n ### Packaging $ ( $script :PackageJson.name ) -$ ( $script :PackageJson.version ) .vsix`n " - ForegroundColor Green
109- exec { & node . / node_modules / vsce / out / vsce package -- no - gitHubIssueLinking }
112+ exec { & npm run package }
110113}
111114
112115# endregion
You can’t perform that action at this time.
0 commit comments