Skip to content

Commit 170570a

Browse files
authored
Merge pull request #5936 from Cosifne/dev/shech/fixScript
Fix the release script
2 parents 79525ce + 53c6660 commit 170570a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

azure-pipelines/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ trigger: none
22
pr: none
33

44
parameters:
5-
- name: test-run
5+
- name: test
66
type: boolean
77
default: true
88
- name: branch
@@ -42,7 +42,7 @@ jobs:
4242
$publishArtifacts = $allArtifacts[0]
4343
Write-Host "All artifacts: $($allArtifacts). Publishing $($publishArtifacts)."
4444
45-
$additionalPublishArgs = "publish","--skip-duplicate"
45+
$additionalPublishArgs = , "publish"
4646
# Artifacts are published to either pre-release or release based on the build branch, https://code.visualstudio.com/api/working-with-extensions/publishing-extension#prerelease-extensions
4747
If ("${{ parameters.branch }}" -eq "prerelease") {
4848
$additionalPublishArgs += "--pre-release"
@@ -56,13 +56,13 @@ jobs:
5656
$additionalPublishArgs += '--packagePath'
5757
$additionalPublishArgs += Get-ChildItem $publishArtifacts *.vsix
5858
59-
if ($({ parameters.test-run })) {
59+
Write-Host "Command run is: vsce $($additionalPublishArgs)."
60+
If ("${{ parameters.test }}" -eq "true") {
6061
Write-Host "In test mode, command is printed instead of run."
61-
Write-Host "Command run is: vsce $($additionalPublishArgs)."
6262
Write-Host "🔒 Verify PAT."
6363
vsce verify-pat ms-dotnettools
6464
}
65-
else {
65+
Else {
6666
vsce @additionalPublishArgs
6767
}
6868
displayName: 🚀 Publish to Marketplace

0 commit comments

Comments
 (0)