From 7342226d7830b64a7bc4752e63ac391e4f74b597 Mon Sep 17 00:00:00 2001 From: Andrei Borodin Date: Wed, 20 Nov 2019 16:24:30 -0800 Subject: [PATCH] Increment NPM Version only on Master --- AzurePipelines/Publish.UPM.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AzurePipelines/Publish.UPM.yml b/AzurePipelines/Publish.UPM.yml index 16392ea..4f757ea 100644 --- a/AzurePipelines/Publish.UPM.yml +++ b/AzurePipelines/Publish.UPM.yml @@ -15,6 +15,8 @@ pool: steps: - task: Npm@1 +# Only update the version on master branch + condition: eq(variables['Build.SourceBranch'], 'refs/heads/master') inputs: command: 'custom' customCommand: --no-git-tag-version version prerelease --preid=$(Build.BuildNumber)