Skip to content

Commit 5dc36c5

Browse files
committed
ci: fix deploy.yml
1 parent d5a5a17 commit 5dc36c5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
# Build job
2626
build:
2727
runs-on: ubuntu-latest
28+
defaults:
29+
run:
30+
working-directory: ./docs
2831
steps:
2932
- name: Checkout
3033
uses: actions/checkout@v4
@@ -38,12 +41,13 @@ jobs:
3841
with:
3942
node-version: 22
4043
cache: pnpm
44+
cache-dependency-path: './docs/pnpm-lock.yaml'
4145
- name: Setup Pages
4246
uses: actions/configure-pages@v4
4347
- name: Install dependencies
44-
run: pnpm ci # or pnpm install / yarn install / bun install
48+
run: pnpm ci
4549
- name: Build with VitePress
46-
run: pnpm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
50+
run: pnpm run docs:build
4751
- name: Upload artifact
4852
uses: actions/upload-pages-artifact@v3
4953
with:

0 commit comments

Comments
 (0)