lifeomic / chroma-react

Open source design system from LifeOmic, built with React
https://lifeomic.github.io/chroma-react/
MIT License
48 stars 9 forks source link

build: includes docs:build target into branch build workflow #371

Closed shawnzhu closed 1 year ago

shawnzhu commented 1 year ago

Before

it doesn't build storybook during PR and branch build workflow

After

it will exercise the target docs:build during PR and branch build workflow.

Although it adds 30s more to the build time, it will make sure the storybook setup works all the time

shawnzhu commented 1 year ago

WoW, it takes 122s to run yarn run docs:build in github actions. could be optimized as a separate workflow

shawnzhu commented 1 year ago

30s seems worth it, for sure.

https://github.com/lifeomic/chroma-react/pull/371#issuecomment-1688170250 showed that it is 122s more in github actions 😓

MMFane commented 1 year ago

Yeah, adding another 2 minutes feels borderline to me. With an overall build less than 10 min that's not terrible but maybe that's just because I'm coming from the perspective of working with phc-ui.

@shawnzhu if you were to add this to a separate action, how would that work? Like, would it run concurrently with the other build actions?

shawnzhu commented 1 year ago

would it run concurrently with the other build actions?

Yes. I plan to make it in a separate build job via matrix build so that it still manages the PR build in a single workflow

shawnzhu commented 1 year ago

After https://github.com/lifeomic/chroma-react/pull/371/commits/c0f10a486aa28d7edb3b8fbd82fbdb920b6c0a59 it will only increase billable time while the duration of PR check was not changed at all since doc build is faster than that of unit test.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 5.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: