Skip to content

Commit 29e65f1

Browse files
committed
chore: update github action
1 parent 1563d4d commit 29e65f1

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
paths:
8-
- 'docs/**'
9-
- 'packages/react-tools-lib/src/**'
10-
117
workflow_dispatch:
128

139
permissions:
@@ -39,24 +35,21 @@ jobs:
3935
node-version: 20
4036
cache: pnpm
4137

42-
- name: Install dependencies
43-
run: pnpm install --frozen-lockfile
38+
- name: Setup Pages
39+
uses: actions/configure-pages@v4
4440

45-
- name: Build library
46-
run: pnpm --filter @ndriadev/react-tools build
41+
- name: Install dependencies
42+
run: pnpm install --frozen-lockfile
4743

48-
- name: Build documentation
49-
run: pnpm run build:docs
50-
env:
44+
- name: Build with documentation
45+
run: pnpm docs:build
46+
env:
5147
NODE_ENV: production
5248

53-
- name: Setup Pages
54-
uses: actions/configure-pages@v4
55-
5649
- name: Upload artifact
5750
uses: actions/upload-pages-artifact@v3
5851
with:
59-
path: dist-docs
52+
path: docs/.vitepress/dist
6053

6154
deploy:
6255
environment:

0 commit comments

Comments
 (0)