diff --git a/.azure-pipelines-steps.yml b/.azure-pipelines-steps.yml index 0e9d1a56..39214af3 100644 --- a/.azure-pipelines-steps.yml +++ b/.azure-pipelines-steps.yml @@ -20,14 +20,17 @@ steps: - script: yarn build displayName: "Build" + condition: succeededOrFailed() # Check linting - script: yarn lint displayName: "Check linting" + condition: succeededOrFailed() # Run test:ci - script: yarn test:ci displayName: "Run tests" + condition: succeededOrFailed() # Publish CI test results - task: PublishTestResults@2 diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 4b51946a..a282ad52 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -54,7 +54,7 @@ jobs: # semantic-release run only on node 10.x & master branch (releases to next dist-tag) - script: yarn semantic-release || true displayName: Release - condition: and(eq(variables['node_version'], '10.x'), eq(variables['Build.SourceBranch'], 'refs/heads/master')) + condition: and(succeeded(), eq(variables['node_version'], '10.x'), eq(variables['Build.SourceBranch'], 'refs/heads/master')) env: NPM_TOKEN: $(NPM_TOKEN) GH_TOKEN: $(GH_TOKEN)