Skip to content

Commit

Permalink
Setup push of packages as condition on main build
Browse files Browse the repository at this point in the history
  • Loading branch information
aeagle committed Mar 30, 2024
1 parent d60f7ce commit cf549f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -53,15 +54,15 @@ steps:
OverWrite: true

- task: Npm@1
enabled: true
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
displayName: Publish react-spaces-storybook
inputs:
command: "publish"
workingDir: "storybook-static"
publishEndpoint: "NPM"

- task: Npm@1
enabled: true
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
displayName: Publish react-spaces
inputs:
command: "publish"
Expand Down

0 comments on commit cf549f3

Please sign in to comment.