Skip to content

Commit babc1b2

Browse files
committed
Install puppeteer/browsers as root dev dep
1 parent 130e62d commit babc1b2

3 files changed

Lines changed: 563 additions & 627 deletions

File tree

.github/actions/setup-chrome-headless-shell/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ runs:
1919
run: |
2020
if [ -n "$CHROME_VERSION" ]; then
2121
echo "version to install: $CHROME_VERSION"
22-
PUPPETEER_CMD="browsers install chrome-headless-shell@$CHROME_VERSION"
23-
CHROME_BIN=`npx --no-install puppeteer $PUPPETEER_CMD | awk '{print $2}'`
22+
PUPPETEER_CMD="install chrome-headless-shell@$CHROME_VERSION"
23+
CHROME_BIN=`npx --no-install @puppeteer/browsers $PUPPETEER_CMD | awk '{print $2}'`
2424
echo "chrome-headless-shell installed in: $CHROME_BIN"
2525
chmod +x $CHROME_BIN
2626
$CHROME_BIN --version

0 commit comments

Comments
 (0)