File tree 3 files changed +12
-7
lines changed
3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 6
6
displayName : Download signed artifacts
7
7
8
8
- 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)
11
11
displayName : Publishing VSIX to VS Code Marketplace
12
12
13
13
# NOTE: We rarely update this script, so we can ignore errors from the gallery
14
14
# caused by us trying to re-publish an updated script.
15
15
- 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)
17
17
displayName : Publishing Install-VSCode.ps1 to PowerShell Gallery
Original file line number Diff line number Diff line change 81
81
"scripts" : {
82
82
"compile" : " tsc -v && tsc -p ./ && tslint -p ./" ,
83
83
"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"
85
87
},
86
88
"contributes" : {
87
89
"breakpoints" : [
Original file line number Diff line number Diff line change @@ -27,8 +27,11 @@ task Restore -If { !(Test-Path "$PSScriptRoot/node_modules") } {
27
27
Write-Host " `n ### Restoring vscode-powershell dependencies`n " - ForegroundColor Green
28
28
# When in a CI build use the --loglevel=error parameter so that
29
29
# 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
+ }
32
35
}
33
36
34
37
@@ -106,7 +109,7 @@ task UpdateReadme -If { $script:IsPreviewExtension } {
106
109
task Package UpdateReadme, {
107
110
assert { Test-Path ./ modules/ PowerShellEditorServices }
108
111
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 }
110
113
}
111
114
112
115
# endregion
You can’t perform that action at this time.
0 commit comments