From cf549f3ce9dfa4ed2646061b82b295bcbb5c0e2b Mon Sep 17 00:00:00 2001 From: Allan Eagle Date: Sat, 30 Mar 2024 16:23:35 +0000 Subject: [PATCH] Setup push of packages as condition on main build --- azure-pipelines.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2498955..e50854b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -45,6 +45,7 @@ steps: displayName: "NPM install and build" - task: CopyFiles@2 + condition: eq(variables['Build.SourceBranch'], 'refs/heads/master') displayName: Move storybook package json inputs: SourceFolder: ".storybook" @@ -53,7 +54,7 @@ steps: OverWrite: true - task: Npm@1 - enabled: true + condition: eq(variables['Build.SourceBranch'], 'refs/heads/master') displayName: Publish react-spaces-storybook inputs: command: "publish" @@ -61,7 +62,7 @@ steps: publishEndpoint: "NPM" - task: Npm@1 - enabled: true + condition: eq(variables['Build.SourceBranch'], 'refs/heads/master') displayName: Publish react-spaces inputs: command: "publish"