File tree 1 file changed +14
-12
lines changed
1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -190,21 +190,23 @@ extends:
190
190
pool :
191
191
type : windows
192
192
variables :
193
- - group : VSCodeMarketplace
194
- - name : ob_outputDirectory
195
- value : $(Build.SourcesDirectory)/out
193
+ ob_outputDirectory : $(Build.SourcesDirectory)/out
196
194
steps :
197
195
- download : current
198
196
displayName : Download artifacts
199
197
- pwsh : npm ci
200
198
displayName : Install NPM packages (for vsce)
201
- - pwsh : |
202
- $publishArgs = @(
203
- '--pat'
204
- '$(token)'
205
- '--packagePath'
206
- '$(drop)/powershell-$(vsixVersion).vsix'
207
- if ([bool]::Parse('$(prerelease)')) { '--pre-release' }
208
- )
209
- npm run publish -- @publishArgs
199
+ - task : AzureCLI@2
210
200
displayName : Run vsce publish
201
+ inputs :
202
+ azureSubscription : vscode-marketplace
203
+ scriptType : pscore
204
+ scriptLocation : inlineScript
205
+ inlineScript : |
206
+ $publishArgs = @(
207
+ '--azure-credential'
208
+ '--packagePath'
209
+ '$(drop)/powershell-$(vsixVersion).vsix'
210
+ if ([bool]::Parse('$(prerelease)')) { '--pre-release' }
211
+ )
212
+ npm run publish -- @publishArgs
You can’t perform that action at this time.
0 commit comments