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

Throw build errors when lockfile is not valid on CI #1370

Merged
merged 13 commits into from
Sep 27, 2023
Merged

Conversation

frandiox
Copy link
Contributor

@frandiox frandiox commented Sep 25, 2023

Related: https://github.com/Shopify/custom-storefronts/issues/277

This could be a problem for monorepos where the lockfile can't be found in the project -- I think Yarn and pnpm can output lockfile in every workspace project but NPM can't afaik.

Is the --no-lockfile-check flag enough for this? 🤔


🎩

cd templates/skeleton && CI=true h2 build

@frandiox
Copy link
Contributor Author

Let's wait to merge this PR until https://github.com/Shopify/oxygen-platform/issues/1365 is fixed. Currently, we can't access env variables within the Oxygen action so we can't detect if we're running on CI properly.

@frandiox frandiox merged commit e148cfc into main Sep 27, 2023
10 checks passed
@frandiox frandiox deleted the fd-lockfile-error branch September 27, 2023 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants