Skip to content

Commit fbcb392

Browse files
authored
ci(previews): install chrome before generation (#426)
1 parent a3ec446 commit fbcb392

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/previews.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,14 @@ jobs:
2626
with:
2727
node-version: lts/*
2828

29-
- name: Install dependencies
30-
run: pnpm i --frozen-lockfile
31-
32-
- name: Generate Flavor Previews
33-
run: pnpm icons:preview
34-
3529
- name: Setup catppuccin/catwalk
3630
uses: catppuccin/[email protected]
3731

38-
- name: Generate Catwalk Preview
39-
run: pnpm catwalk
32+
- name: Install dependencies
33+
run: pnpm i --frozen-lockfile
34+
35+
- name: Generate Previews
36+
run: pnpm previews
4037

4138
- name: Create Pull Request
4239
uses: peter-evans/create-pull-request@v7

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
"icons:optimize": "tsx scripts/icons/optimize.ts",
124124
"icons:preview": "tsx scripts/icons/preview.ts",
125125
"icons": "pnpm run --sequential '/^icons:.*/'",
126+
"previews": "npx puppeteer browsers install chrome && pnpm run icons:preview && pnpm run catwalk",
126127
"integrity": "tsx scripts/integrity.ts",
127128
"lint": "eslint .",
128129
"lint:fix": "eslint . --fix",

0 commit comments

Comments
 (0)