-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
script/after_success
Outdated
# 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
script/after_success
Outdated
@@ -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 |
There was a problem hiding this comment.
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.
Confirmed this works cc @shawnbot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💪
Fixes #514
I had to setup a new GH_TOKEN for this.