Skip to content

Commit bf46818

Browse files
committed
Switch to new VSCE publish workflow
1 parent 704c052 commit bf46818

File tree

1 file changed

+15
-21
lines changed

1 file changed

+15
-21
lines changed

.pipelines/vscode-powershell-Official.yml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ extends:
179179
inputs:
180180
notifyUsers: $(Build.RequestedForEmail)
181181
instructions: Please validate the release and then publish it!
182-
timeoutInMinutes: 1440
183182
- job: vscode
184183
dependsOn: validation
185184
displayName: Publish to VS Code Marketplace
@@ -189,24 +188,19 @@ extends:
189188
inputs:
190189
- input: pipelineArtifact
191190
artifactName: drop_build_main
191+
workflow: vsce
192+
vsce:
193+
serviceConnection: vscode-marketplace
194+
vsixPath: "$(Pipeline.Workspace)/powershell-$(vsixVersion).vsix"
195+
signaturePath: "$(Pipeline.Workspace)/powershell-$(vsixVersion).signature.p7s"
196+
manifestPath: "$(Pipeline.Workspace)/powershell-$(vsixVersion).manifest"
197+
prerelease: $(prerelease)
198+
useCustomVSCE: true
199+
feed:
200+
organization: mscodehub
201+
project: PowerShellCore
202+
feedName: PowerShellCore_PublicPackages
192203
steps:
193-
- pwsh: npm ci
194-
displayName: Install NPM packages (for vsce)
195-
- task: AzureCLI@2
196-
displayName: Run vsce publish
197-
inputs:
198-
azureSubscription: vscode-marketplace
199-
scriptType: pscore
200-
scriptLocation: inlineScript
201-
inlineScript: |
202-
$publishArgs = @(
203-
'--azure-credential'
204-
'--packagePath'
205-
'$(Pipeline.Workspace)/powershell-$(vsixVersion).vsix'
206-
'--manifestPath'
207-
'$(Pipeline.Workspace)/powershell-$(vsixVersion).manifest'
208-
'--signaturePath'
209-
'$(Pipeline.Workspace)/powershell-$(vsixVersion).signature.p7s'
210-
if ([bool]::Parse('$(prerelease)')) { '--pre-release' }
211-
)
212-
npm run publish -- @publishArgs
204+
- pwsh: |
205+
Write-Host Publishing: $(vsixVersion), pre-release: $(prerelease)
206+
displayName: No-op step to satisfy pipeline requirements

0 commit comments

Comments
 (0)