Sitelet https://web.archive.org/web/20200814035217/https://github.com/nodejs/nodejs.dev/pull/837
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

build storybook to public before site deploy #837

Merged
merged 4 commits into from Aug 12, 2020

Conversation

@micahgodbolt
Copy link
Contributor

micahgodbolt commented Aug 12, 2020

Description

Build storybook on staging and production (optional...happy to remove) with a target of 'public/storybook'

this way we could go to https://staging.nodejs.dev/storybook and see the current components and design system

Related Issues

@benhalverson
Copy link
Contributor

benhalverson commented Aug 12, 2020

/preview

@github-actions
Copy link

github-actions bot commented Aug 12, 2020

Please find a preview at: https://staging.nodejs.dev/837/

@micahgodbolt
Copy link
Contributor Author

micahgodbolt commented Aug 12, 2020

hmmm...worked locally. don't see it

@micahgodbolt
Copy link
Contributor Author

micahgodbolt commented Aug 12, 2020

@benhalverson how do I see the built task to see what happened? or have any thoughts on why it's not showing?

@MylesBorins
Copy link
Member

MylesBorins commented Aug 12, 2020

@micahgodbolt because this change is coming from a fork the action will not run your modified code (this is a security feature)

@micahgodbolt
Copy link
Contributor Author

micahgodbolt commented Aug 12, 2020

oh yeah...been there done that!

@micahgodbolt
Copy link
Contributor Author

micahgodbolt commented Aug 12, 2020

if you create a branch in the repo i can target that instead, we can merge it into the branch and create PR into master

@micahgodbolt
Copy link
Contributor Author

micahgodbolt commented Aug 12, 2020

added typography

image

and colors page

image

want to break colors up a bit better and see if I can not rely on duplicated js object

Copy link
Contributor

benhalverson left a comment

I tried this locally 👍

@MylesBorins
Copy link
Member

MylesBorins commented Aug 12, 2020

Apologies that the CI / CD stuff is such a mess, the preview staging automation is actually an action 😅

-> https://github.com/nodejs/nodejs.dev/blob/master/.github/workflows/upload-to-staging.yml

there isn't really use of a staging branch, which is why there is no content at the root of staging.nodejs.org

Copy link

designMoreWeb left a comment

Tried it locally looks good

Copy link
Member

MylesBorins left a comment

Just making it explicit that this needs some changes before it lands.

This needs a rebase as the cloudbuild-staging.yml has been removed on the main branch. It also needs to update the github action for previews if we want to support that.

@MylesBorins
Copy link
Member

MylesBorins commented Aug 12, 2020

I'm on the fence about if we should push the storybook to production... but I'd say it is more a +/- 0... reasonable to try it out and remove it if we decide to not include it.

I requested changes including a rebase and an update to the github aciton. Please feel free to dismiss my review once those are updated. I'll do my best to review this in a timely fashion, but no need to block on me if we can't got those landed in time.

@micahgodbolt
Copy link
Contributor Author

micahgodbolt commented Aug 12, 2020

Yeah, while we're on Dev i don't see a reason not to keep it out there. Before release we can probably push it to a subdomain or completely different URL if desired. Certainly is handy for PR preview branches

Copy link
Member

MylesBorins left a comment

LGTM

@MylesBorins
Copy link
Member

MylesBorins commented Aug 12, 2020

If this checks pass lets land this and see what happens with both production + an open PR then iterate if things are not working as expected

@micahgodbolt
Copy link
Contributor Author

micahgodbolt commented Aug 12, 2020

🕺

@MylesBorins MylesBorins merged commit 15c27b4 into nodejs:master Aug 12, 2020
2 checks passed
2 checks passed
test-ci
Details
test-ci
Details
@micahgodbolt micahgodbolt deleted the micahgodbolt:storybook-build branch Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.