Skip to content

Commit 5a42ae9

Browse files
committed
update jsdocs action logic
1 parent a1384cb commit 5a42ae9

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/docs-push.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ jobs:
2424
token: ${{ secrets.KNOWLEDGEBASE_PR_TOKEN }}
2525
path: knowledge-base
2626

27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Generate docs
31+
run: |
32+
npm run docs
33+
2734
- name: Copy files
2835
run: |
2936
# Specify the files or directories you want to copy

.github/workflows/jsdocs-deploy.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@ jobs:
2525

2626
- name: Generate docs
2727
run: |
28-
npm run docs --workspace @docknetwork/wallet-sdk-core
29-
# Create Jekyll config
30-
# echo "theme: jekyll-theme-minimal" > jsdocs/_config.yml
31-
# echo "title: Wallet SDK Documentation" >> jsdocs/_config.yml
32-
# echo "description: API Documentation" >> jsdocs/_config.yml
28+
npm run docs
3329
3430
- name: Commit report
3531
run: |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"format": "prettier './src/**/*.{js,json}' --write",
6565
"exec": "BABEL_ENV=development; babel-node",
6666
"postinstall": "sh ./scripts/fix-deps.sh && npm run build",
67-
"docs:markdown": "cd packages/core && npm run docs"
67+
"docs": "npm run docs --workspace @docknetwork/wallet-sdk-core"
6868
},
6969
"jest-junit": {
7070
"outputDirectory": "reports",

0 commit comments

Comments
 (0)