Skip to content

Commit cf549f3

Browse files
committed
Setup push of packages as condition on main build
1 parent d60f7ce commit cf549f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ steps:
4545
displayName: "NPM install and build"
4646
4747
- task: CopyFiles@2
48+
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
4849
displayName: Move storybook package json
4950
inputs:
5051
SourceFolder: ".storybook"
@@ -53,15 +54,15 @@ steps:
5354
OverWrite: true
5455

5556
- task: Npm@1
56-
enabled: true
57+
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
5758
displayName: Publish react-spaces-storybook
5859
inputs:
5960
command: "publish"
6061
workingDir: "storybook-static"
6162
publishEndpoint: "NPM"
6263

6364
- task: Npm@1
64-
enabled: true
65+
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
6566
displayName: Publish react-spaces
6667
inputs:
6768
command: "publish"

0 commit comments

Comments
 (0)