Skip to content

Commit 0c35c73

Browse files
committed
Fix doc publishing workflow
1 parent 0439577 commit 0c35c73

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/publish-docs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,22 @@ jobs:
3434
# with:
3535
# version: 9 # Not needed if you've set "packageManager" in package.json
3636
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
37+
- name: Change directory to docs
38+
run: cd docs
3739
- name: Setup Node
3840
uses: actions/setup-node@v4
3941
with:
4042
node-version: 24
4143
cache: npm # or pnpm / yarn
44+
cache-dependency-path: docs/package-lock.json
4245
- name: Setup Pages
4346
uses: actions/configure-pages@v4
4447
- name: Install dependencies
4548
run: npm ci # or pnpm install / yarn install / bun install
49+
working-directory: ./docs
4650
- name: Build with VitePress
4751
run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
52+
working-directory: ./docs
4853
- name: Upload artifact
4954
uses: actions/upload-pages-artifact@v3
5055
with:

0 commit comments

Comments
 (0)