Skip to content

Commit 7133576

Browse files
committed
(build) Fix the publish stage
1 parent a0cde19 commit 7133576

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ stages:
3434
condition: succeeded()
3535
jobs:
3636
- job: Publish
37-
strategy:
38-
matrix:
39-
'Windows':
40-
VM_IMAGE: 'windows-2019'
4137
pool:
42-
vmImage: $(VM_IMAGE)
38+
vmImage: windows-2019
4339
steps:
4440
- template: build/stages/publish.yml

build/publish.cake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ Task("Publish-Vsix")
134134
ArgumentCustomization = args => args.Render() + " --no-wait-validation"
135135
};
136136

137+
NpmSet(new NpmSetSettings { WorkingDirectory = workDir, LogLevel = NpmLogLevel.Silent, Key = "progress", Value = "false" });
138+
NpmInstall(new NpmInstallSettings { WorkingDirectory = workDir, LogLevel = NpmLogLevel.Silent });
137139
TfxExtensionPublish(parameters.Paths.Files.VsixOutputFilePath, settings);
138140
})
139141
.OnError(exception =>

build/stages/common-steps.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ steps:
66
version: 2.2.107
77
installationPath: $(Agent.ToolsDirectory)/dotnet
88
- script: dotnet tool install --global Cake.Tool
9-
displayName: 'Install Cake tool'
9+
displayName: 'Install Cake tool'
10+
env:
11+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
12+
DOTNET_CLI_TELEMETRY_OPTOUT: 1

build/stages/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
steps:
22
- template: common-steps.yml
3+
- task: UseRubyVersion@0
4+
condition: ne( variables['Agent.OS'], 'Darwin' )
5+
displayName: 'Use .Ruby >= 2.5'
6+
inputs:
7+
versionSpec: '>= 2.5'
8+
addToPath: true
39
- task: DownloadPipelineArtifact@2
410
displayName: 'Download pipeline artifacts'
511
inputs:
612
source: current
713
path: $(Build.SourcesDirectory)
814
artifact: artifacts
915
- script: dotnet cake build.cake --bootstrap && dotnet cake build.cake --target=Publish
10-
displayName: 'Docker build'
16+
displayName: 'Publish'
1117
env:
1218
GITHUB_TOKEN: $(GITHUB_TOKEN)
1319
NUGET_API_KEY: $(NUGET_API_KEY)

0 commit comments

Comments
 (0)