Skip to content

Commit 794e472

Browse files
Conditions.
1 parent 677cf64 commit 794e472

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515

1616
- script: npm pack
1717
displayName: 'npm pack'
18-
#condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
18+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
1919

2020
- task: CopyFiles@2
2121
inputs:
2222
sourceFolder: '$(Build.SourcesDirectory)'
2323
contents: '*.tgz'
2424
targetFolder: $(Build.ArtifactStagingDirectory)
2525
displayName: 'Copy npm package to staging'
26-
#condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
26+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
2727

2828
- task: CopyFiles@2
2929
inputs:
@@ -37,7 +37,7 @@ jobs:
3737
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
3838
artifactName: npm
3939
displayName: 'Publish npm artifact'
40-
#condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
40+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
4141

4242
- job: 'MacOS_1013'
4343
pool:

0 commit comments

Comments
 (0)