Skip to content

Commit 88e8f01

Browse files
committed
docs: update workflow and scripts
1 parent 9c60b4a commit 88e8f01

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/vercel-deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ jobs:
3131
- name: build
3232
run: |
3333
npm ci
34-
npm run build
34+
npm run build:docs
3535
3636
- uses: amondnet/vercel-action@v20
3737
with:
3838
vercel-token: ${{ secrets.VERCEL_TOKEN }}
3939
vercel-args: '--prod'
40-
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
41-
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
42-
working-directory: ./example
40+
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
41+
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
42+
working-directory: ./documentation/public

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"prepublishOnly": "npm i && npm run build",
1414
"prepare": "husky install",
1515
"version": "conventional-changelog -p karma -i CHANGELOG.md -s -r 0 && git add .",
16-
"docs": "vuepress-jsdoc --source=./dist --readme ./README.md --exclude=\"**/*.d.ts,**/interfaces.*,**/constants.*,**/cmds.*\"",
16+
"docs": "npx vuepress-jsdoc --source=./dist --readme ./README.md --exclude=\"**/*.d.ts,**/interfaces.*,**/constants.*,**/cmds.*\"",
1717
"docs:dev": "npm run docs && npx vuepress dev documentation",
18-
"docs:build": "npx vuepress build documentation"
18+
"docs:build": "npm run build && npm run docs && npx vuepress build documentation"
1919
},
2020
"keywords": [
2121
"jsdoc",

0 commit comments

Comments
 (0)