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

fix(package): run render:html on prepack #11368

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Jun 26, 2024

Summary

Fixes #11365.

Problem

Since #10953, yarn tool spas no longer builds index.html files, and these are instead built via yarn render:html, but this command isn't run when packaging yari for npm.

Solution

Run yarn render:html as part of the prepack script.


How did you test this change?

Fixed the npm-published-simulation.yml workflow to actually fail when http://localhost:5042/en-US/ returns an HTTP error.

@caugner caugner requested a review from a team as a code owner June 26, 2024 11:47
Ensures that `index.html` files are built and packaged.
@caugner caugner requested a review from mdn-bot as a code owner June 26, 2024 11:53
Copy link
Contributor

@fiji-flo fiji-flo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@fiji-flo fiji-flo merged commit 59ab9f9 into main Jun 26, 2024
16 checks passed
@fiji-flo fiji-flo deleted the 11365-render-html-on-prepack branch June 26, 2024 12:03
ferdnyc pushed a commit to ferdnyc/yari that referenced this pull request Jul 13, 2024
* fix(npm-published-simulation): curl with --fail

* fix(package): run render:html on prepack

Ensures that `index.html` files are built and packaged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Yari build possibly broken
2 participants