Skip to content

Commit 3085c15

Browse files
Fix: install playwright npm package before browser install
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 529bbdf commit 3085c15

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/create-challenge.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ jobs:
102102
exit 0
103103
fi
104104
echo "Rendering $CHALLENGE_HTML"
105-
npx --yes playwright install --with-deps chromium
105+
npm install playwright
106+
npx playwright install --with-deps chromium
106107
node .github/scripts/render-challenge.js "$CHALLENGE_HTML" /tmp/challenge-preview.png
107108
echo "challenge_html=$CHALLENGE_HTML" >> "$GITHUB_ENV"
108109

.github/workflows/test-render-preview.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525

2626
- name: Render challenge.html preview
2727
run: |
28-
npx --yes playwright install --with-deps chromium
28+
npm install playwright
29+
npx playwright install --with-deps chromium
2930
node .github/scripts/render-challenge.js "${{ inputs.challenge_path }}" /tmp/challenge-preview.png
3031
3132
- name: Comment on PR with preview

0 commit comments

Comments
 (0)