Skip to content

Commit

Permalink
fix: fix release routine on bad builds (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoonoh committed Oct 29, 2019
1 parent a93aaff commit 95fea80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .azure-pipelines-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 95fea80

Please sign in to comment.