Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 64c3163

Browse files
Fix bug in release pipeline
1 parent c868fe4 commit 64c3163

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

‎.vsts-ci/templates/publish-markets.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ steps:
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

‎package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@
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": [

‎vscode-powershell.build.ps1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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 } {
106109
task 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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /