Skip to content

Commit 9322add

Browse files
committed
ghp: install fork deps before building (tsdown not on PATH otherwise)
1 parent 4957d6c commit 9322add

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/ghp.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ jobs:
1717
- uses: pnpm/action-setup@v4
1818
with:
1919
version: 10
20-
- run: pnpm i --no-frozen-lockfile
21-
# Slidev fork ships TypeScript source only (no `dist/` in git);
22-
# build its packages so `@slidev/cli` has a runnable `dist/cli.mjs`.
23-
- name: Build slidev fork
20+
# Slidev fork ships TS source only (no `dist/` in git); install its own
21+
# workspace deps (tsdown etc.) and build its packages so `@slidev/cli`
22+
# has a runnable `dist/cli.mjs`. Must happen BEFORE the deck's install,
23+
# because the deck's `pnpm-workspace.yaml` links to the fork's packages.
24+
- name: Install + build slidev fork
2425
working-directory: ../../slidev
25-
run: pnpm build
26+
run: |
27+
pnpm install --no-frozen-lockfile
28+
pnpm build
29+
- run: pnpm i --no-frozen-lockfile
2630
- run: pnpm build
2731
- uses: JamesIves/github-pages-deploy-action@v4
2832
with:

0 commit comments

Comments
 (0)