Skip to content

Commit 3d7125d

Browse files
committed
ci: try to fix ci/cd github
1 parent beddc88 commit 3d7125d

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- run: corepack enable
3636

37-
- run: pnpm i
37+
- run: pnpm docs:install
3838

3939
- run: pnpm docs:build
4040

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ doc:
1111
rm -rf .vitepress/cache && \
1212
pnpm i && \
1313
pnpm dev
14+
doc-build:
15+
cd docs && \
16+
rm -rf node_modules && \
17+
rm -rf .vitepress/cache && \
18+
pnpm i && \
19+
pnpm build

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"test:watch": "vitest watch",
1717
"test:coverage": "vitest run --coverage",
1818
"docs": "pnpm build && cd docs && pnpm dev",
19-
"docs:build": "pnpm build && cd docs && pnpm build",
19+
"docs:install": "cd docs && pnpm i",
20+
"docs:build": "cd docs && pnpm build",
2021
"docs:serve": "cd docs && pnpm preview",
2122
"dev": "pnpm test:watch",
2223
"dev:install-hooks": "if [ -z \"$CI\" ]; then lefthook install; fi"

0 commit comments

Comments
 (0)