diff --git a/azure-pipelines-template.yml b/azure-pipelines-template.yml index 3a7d13d2..d6ceea93 100644 --- a/azure-pipelines-template.yml +++ b/azure-pipelines-template.yml @@ -47,14 +47,14 @@ jobs: - script: npm test displayName: Run tests - - ${{ if and(startsWith(variables['Build.SourceBranch'], 'refs/tags/v') }}: + - ${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/v') }}: - script: npm run prebuild displayName: Prebuild - condition: eq(variables['publish_artifacts'], 'true')) + condition: eq(variables['publish_artifacts'], 'true') - task: PublishBuildArtifacts@1 displayName: Publish Artifacts - condition: eq(variables['publish_artifacts'], 'true')) + condition: eq(variables['publish_artifacts'], 'true') inputs: artifactName: prebuilds pathtoPublish: '$(System.DefaultWorkingDirectory)/prebuilds'