Skip to content

Commit 394209f

Browse files
committed
WIP: Disable publish steps so we can test it
Without actually pushing!
1 parent fa7cafe commit 394209f

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

.vsts-ci/templates/ci-general.yml

+8-11
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ parameters:
77
default: false
88

99
steps:
10-
- task: PowerShell@2
11-
displayName: PowerShell version
12-
inputs:
13-
targetType: inline
14-
script: $PSVersionTable
15-
pwsh: ${{ parameters.pwsh }}
16-
1710
- checkout: self
1811

1912
# NOTE: We either checkout the Git repo for PowerShellEditorServices, or we
@@ -64,25 +57,28 @@ steps:
6457

6558
# The build script is always run with PowerShell Core
6659
- task: PowerShell@2
67-
displayName: Build Package
60+
displayName: Build and package
6861
inputs:
6962
targetType: inline
7063
script: |
71-
Get-ChildItem env:
72-
Get-Module -ListAvailable Pester
7364
Install-Module InvokeBuild -Scope CurrentUser -Force
7465
Install-Module platyPS -Scope CurrentUser -Force
7566
Invoke-Build -Configuration Release Package
7667
$PackageJson = Get-Content -Raw package.json | ConvertFrom-Json
7768
Write-Host "##vso[task.setvariable variable=vsixPath]$(Resolve-Path powershell-$($PackageJson.version).vsix)"
7869
workingDirectory: $(Build.SourcesDirectory)/vscode-powershell
70+
pwsh: true
7971

8072
# Tests in particular are run with either PowerShell Core or Windows PowerShell
8173
- task: PowerShell@2
82-
displayName: Test
74+
displayName: Run unit tests
8375
inputs:
8476
targetType: inline
8577
script: |
78+
$PSVersionTable
79+
Get-ChildItem env:
80+
Get-Module -ListAvailable Pester
81+
Install-Module InvokeBuild -Scope CurrentUser -Force
8682
Invoke-Build -Configuration Release Test
8783
workingDirectory: $(Build.SourcesDirectory)/vscode-powershell
8884
pwsh: ${{ parameters.pwsh }}
@@ -97,6 +93,7 @@ steps:
9793
Write-Host '##vso[task.LogIssue type=error;]PowerShell Editor Services bits were not built in release configuration!'
9894
exit 1
9995
}
96+
pwsh: true
10097

10198
- publish: $(vsixPath)
10299
artifact: vscode-powershell-vsix-$(System.JobId)

.vsts-ci/templates/publish-github.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ steps:
88
- pwsh: |
99
$PackageJson = Get-Content -Raw $(Build.SourcesDirectory)/package.json | ConvertFrom-Json
1010
$(Build.SourcesDirectory)/tools/setupReleaseTools.ps1 -Token $(GitHubToken)
11-
New-DraftRelease -RepositoryName vscode-powershell -Assets $(Pipeline.Workspace)/vscode-powershell/powershell-$($PackageJson.version).vsix,$(Pipeline.Workspace)/vscode-powershell/Install-VSCode.ps1
11+
# New-DraftRelease -RepositoryName vscode-powershell -Assets $(Pipeline.Workspace)/vscode-powershell/powershell-$($PackageJson.version).vsix,$(Pipeline.Workspace)/vscode-powershell/Install-VSCode.ps1
12+
echo $PackageJson.version
1213
displayName: Drafting a GitHub Release

.vsts-ci/templates/publish-markets.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ steps:
1717
'--pat'
1818
'$(VsceToken)'
1919
)
20-
npm run publish -- @PublishArgs
20+
# npm run publish -- @PublishArgs
21+
echo @PublishArgs
2122
displayName: Publishing VSIX to VS Code Marketplace
2223

2324
# NOTE: We rarely update this script, so we can ignore errors from the gallery
2425
# caused by us trying to re-publish an updated script.
2526
- pwsh: |
26-
Publish-Script -Path $(Pipeline.Workspace)/vscode-powershell/Install-VSCode.ps1 -NuGetApiKey $(GalleryToken)
27+
# Publish-Script -Path $(Pipeline.Workspace)/vscode-powershell/Install-VSCode.ps1 -NuGetApiKey $(GalleryToken)
28+
echo skip
2729
displayName: Publishing Install-VSCode.ps1 to PowerShell Gallery
2830
continueOnError: true

0 commit comments

Comments
 (0)