-
Notifications
You must be signed in to change notification settings - Fork 188
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
[Bug]: build steps are run twice during CI #671
Comments
The |
This was initially necessary to check the types and run tests. It's no longer necessary during tests since 2d408ca, and no longer necessary during type checks since 676b1b6. It's still necessary to have access to the built artifacts, though, when checking the build size and when building the documentation site (for this page to exist). The CircleCI job that tests the build size seems to be the only one that requires a build now. In this case, we might do it directly in Regarding the release, Ship.js takes care of building anyway, so building on prepare isn't useful. Finally, regarding the documentation, this is taken care of not in the CI but directly on Vercel, using their GitHub integration. We could handle this by building as the first step in all What do you think? |
This will need to be reconsidered if prepare is changed
{
"buildCommand": false,
"^": "buildCommand is false because `yarn prepare` is going to build packages anyway.",
} |
Take aways
|
Should the example projects have They aren't published to |
We can do this, yes! |
@sarahdayan is the |
@johnhooks Hmm I guess it's useful to see at a glance, in the CI, what has failed. If the If this happens in the Is |
It's just a duplication. If its helpful to you, then I'll shelve the idea. If I can figure out how to use Turbo effectively in CI, it will be a none issue because the build steps could be structured in a way to prevent a second call to |
fixes #671 Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
Is there an existing issue for this?
Current behavior
During local development I've notice when running
yarn install
it will call theprepare
scripts of all the workspace packages. Is this intended behavior?This also happens in the CI build pipeline. So
babel
,tsc
andapi-extractor
are all run twice. Because they are run afteryarn install
and also duringyarn build
. What is the right way to remove this duplication?^^ reference
Expected behavior
Build steps should not be duplicated in CI or local development.
Steps to reproduce
yarn install
yarn build
Version
2.0.0-alpha.9
Environment
Node.js 16.13.0
Code of Conduct
The text was updated successfully, but these errors were encountered: