Skip to content

Commit

Permalink
Merge pull request #728 from primer/storybook-publish-fix
Browse files Browse the repository at this point in the history
Prevent failed Storybook publishing from breaking the build
  • Loading branch information
shawnbot authored Apr 5, 2019
2 parents a4511db + 77b1fa4 commit c7fd221
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/postpublish
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ if [[ -f $file ]]; then
fi

if [[ "$GITHUB_REF" = "refs/heads/master" ]]; then
npm run publish-storybook
npm run --silent publish-storybook || (
echo "Whoops! Failed to publish Storybook. This is not a fatal error."
)
fi

0 comments on commit c7fd221

Please sign in to comment.