diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f1dbe60..6e15548 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -36,7 +36,7 @@ steps: targetFolder: '/var/www/html/react-tidy' cleanTargetFolder: true displayName: 'Deploy docs' - + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) - task: GitHubRelease@1 @@ -57,4 +57,5 @@ steps: inputs: command: 'publish' workingDir: '.' - publishEndpoint: 'npm' \ No newline at end of file + publishEndpoint: 'npm' + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))