Skip to content

Commit 2810d0e

Browse files
author
Ondrej Machala
committed
chore: use npx heroshot in screenshot workflow
1 parent f5e36a8 commit 2810d0e

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

.github/workflows/update-screenshots.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,12 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212

13-
- uses: pnpm/action-setup@v4
14-
1513
- uses: actions/setup-node@v4
1614
with:
1715
node-version: 20
18-
cache: pnpm
19-
20-
- name: Install dependencies
21-
run: pnpm install --frozen-lockfile
22-
23-
- name: Build heroshot
24-
run: pnpm build
25-
26-
- name: Build editor
27-
run: pnpm build:editor
28-
29-
- name: Cache Playwright browsers
30-
uses: actions/cache@v4
31-
id: playwright-cache
32-
with:
33-
path: ~/.cache/ms-playwright
34-
key: v1-playwright-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
35-
36-
- name: Install Playwright browsers
37-
if: steps.playwright-cache.outputs.cache-hit != 'true'
38-
run: pnpm exec playwright install chromium
3916

4017
- name: Run heroshot
41-
run: node ../dist/cli/cli.js
18+
run: npx heroshot
4219
working-directory: docs
4320
env:
4421
HEROSHOT_SESSION_KEY: ${{ secrets.HEROSHOT_SESSION_KEY }}

0 commit comments

Comments
 (0)