We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c09990 commit 152414bCopy full SHA for 152414b
.vsts-ci/templates/publish-markets.yml
@@ -7,7 +7,15 @@ steps:
7
8
- pwsh: |
9
npm ci --loglevel=error
10
- npm run publish -- --packagePath $(Pipeline.Workspace)/vscode-powershell/powershell-*.vsix --pat $(VsceToken)
+ $PackageJson = Get-Content -Raw $(Build.SourcesDirectory)/package.json | ConvertFrom-Json
11
+ $publishArgs = @(
12
+ if ($PackageJson.preview) { "--pre-release" }
13
+ "--packagePath"
14
+ "$(Pipeline.Workspace)/vscode-powershell/powershell-*.vsix"
15
+ "--pat"
16
+ "$(VsceToken)"
17
+ )
18
+ npm run publish -- @publishArgs
19
displayName: Publishing VSIX to VS Code Marketplace
20
21
# NOTE: We rarely update this script, so we can ignore errors from the gallery
0 commit comments