w3c / spec-prod

GitHub Action to build ReSpec/Bikeshed specs, validate output and publish to GitHub pages or W3C
https://w3c.github.io/spec-prod/
MIT License
34 stars 21 forks source link

pnpm could not find chrome #179

Closed pchampin closed 7 months ago

pchampin commented 7 months ago

This is an error that appeared recently on a number of repos using spec-prod (e.g. https://github.com/w3c/rdf-concepts)

Validate Web IDL
  Validating Web IDL defined in index.html...
  $ pnpm add reffy@15
  + reffy 15.0.2
  Could not find Chrome (ver. 123.0.6312.105). This can occur if either
   1. you did not perform an installation before running the script (e.g. `npx puppeteer browsers install chrome`) or
   2. your cache path is incorrectly configured (which is: /home/runner/.cache/puppeteer).
  For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
  Error: Process completed with exit code 1.
Run # Failed
  # Failed
  node -e 'require("@actions/core").setFailed("Failed. See details above.")'
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin

This seems to be related to this issue.

@gkellogg

sidvishnoi commented 7 months ago

@pchampin This was fixed in v2.11.1. Can you confirm issue still persists?

(Note: You don't need to update workflow to use v2.11.1, v2 is aliased to latest v2.x)

pchampin commented 7 months ago

Can you confirm issue still persists?

The bug is indeed gone! Thanks :+1: