Skip to content

promote staging to main - #33

Merged
ftschindler merged 16 commits into
mainfrom
staging
Oct 14, 2026
Merged

ftschindler merged 16 commits into
mainfrom
staging

Conversation

@ftschindler

Copy link
Copy Markdown
Owner

No description provided.

The pin from the browser-pinning guide was correct and the hook still failed,
because the browser was never where the pin said it would be. puppeteer fetches
its Chrome from a postinstall script into its own cache directory, and CI cached
only the prek environment beside it. A cache hit then restored node_modules
without re-running the install, so the hook had every dependency and no browser.

Two changes, either of which would have been enough on its own:

- Cache the two directories under one key, so a restore cannot bring back half
  of a hook environment.
- Install the browser in the hook entry, naming no version so the pinned
  puppeteer resolves its own. This also covers npm 12, which declines to run
  install scripts by default and so would stop the postinstall download
  entirely.
@ftschindler
ftschindler merged commit b5eb118 into main Oct 14, 2026
3 of 7 checks passed
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.

1 participant