Skip to content

Commit 45f09db

Browse files
author
Amram Englander
committed
Fix docs CI: install vitepress in separate context
1 parent 9d51e23 commit 45f09db

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/docs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ jobs:
2525
- uses: actions/setup-node@v4
2626
with:
2727
node-version: 22
28-
cache: npm
2928

30-
- run: npm install vitepress
29+
- name: Install VitePress
30+
run: |
31+
cd docs
32+
npm init -y > /dev/null 2>&1
33+
npm install vitepress
3134
3235
- name: Build docs
3336
run: npx vitepress build docs

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ browser-profile/
2626
# VitePress
2727
docs/.vitepress/dist/
2828
docs/.vitepress/cache/
29+
docs/node_modules/
30+
docs/package.json
31+
docs/package-lock.json

0 commit comments

Comments
 (0)