Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto publish storybook #515

Merged
merged 6 commits into from
Jun 28, 2018
Merged

Auto publish storybook #515

merged 6 commits into from
Jun 28, 2018

Conversation

jonrohan
Copy link
Member

Fixes #514

I had to setup a new GH_TOKEN for this.

# Build and publish storybook
# test. TODO: REMOVE
$(npm bin)/build-storybook -o build
$(npm bin)/gh-pages -d build -b gh-pages -r https://${GH_TOKEN}@github.com/primer/storybook
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minus the ${GH_TOKEN}, this looks like what we're already doing in the publish-storybook run-script. Should we update that instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it fail because we won't have the environment variable locally?

@@ -11,7 +11,7 @@ then
# Build and publish storybook
# test. TODO: REMOVE
$(npm bin)/build-storybook -o build
$(npm bin)/gh-pages -d build -b gh-pages -r https://${GH_TOKEN}@github.com/primer/storybook
$(npm bin)/gh-pages -d build -b gh-pages -r https://${GITHUB_AUTH}@github.com/primer/storybook
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to add the --silent flag here so that the auth token doesn't show up in logs if there's a failure.

@jonrohan
Copy link
Member Author

Confirmed this works

image

primer/storybook@fa94128

cc @shawnbot

Copy link
Contributor

@shawnbot shawnbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants