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 5d749c1

Browse files
Replace vsce PAT with an Azure Credential
The latest version of the tool will use the Azure API to grab a token, it just needs to be run in a context where Azure CLI is authenticated. I think.
1 parent e09e8d5 commit 5d749c1

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

‎.pipelines/vscode-powershell-Official.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -190,21 +190,23 @@ extends:
190190
pool:
191191
type: windows
192192
variables:
193-
- group: VSCodeMarketplace
194-
- name: ob_outputDirectory
195-
value: $(Build.SourcesDirectory)/out
193+
ob_outputDirectory: $(Build.SourcesDirectory)/out
196194
steps:
197195
- download: current
198196
displayName: Download artifacts
199197
- pwsh: npm ci
200198
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
210200
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

0 commit comments

Comments
(0)

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