Skip to content

Commit 3b77e69

Browse files
committed
improve docs build process
1 parent 3cf9359 commit 3b77e69

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
- uses: actions/setup-node@v1
1313
with:
1414
node-version: "12.x"
15+
- run: yarn install --frozen-lockfile
1516
- run: yarn build-docs
1617
- run: yarn install --frozen-lockfile
1718
- uses: peaceiris/actions-gh-pages@v3

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"cmd": "node --trace-warnings dist/cmd.js",
2929
"build-test": "yarn build && yarn test",
3030
"build-cmd": "yarn build && yarn cmd",
31-
"build-docs": "yarn build && yarn build-docs-theme && typedoc",
32-
"build-docs-theme": "cd doc-theme && yarn install && yarn build && rimraf node_modules && cd ..",
31+
"build-docs": "yarn build-docs-theme && typedoc",
32+
"build-docs-theme": "cd doc-theme && yarn install --frozen-lockfile && yarn build && rimraf node_modules && cd ..",
3333
"watch-docs": "yarn typedoc --watch",
3434
"audit-fix": "npm_config_yes=true npx yarn-audit-fix --flow=convert"
3535
},

0 commit comments

Comments
 (0)