Skip to content

Commit 4cc5870

Browse files
committed
build: add docs release script (close #59)
1 parent 5897ae9 commit 4cc5870

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Diff for: .github/workflows/docs.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,8 @@ jobs:
4141
- name: Install dependencies
4242
run: yarn --frozen-lockfile
4343

44-
- name: Copy and build
45-
run: |
46-
yarn copy
47-
yarn build
48-
4944
- name: Build documentation site
50-
run: yarn docs:build
45+
run: yarn docs:release
5146

5247
- name: Deploy to GitHub Pages
5348
uses: crazy-max/[email protected]

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"docs:clean": "rimraf docs/.vuepress/.temp docs/.vuepress/.cache docs/.vuepress/dist",
1616
"docs:dev": "vuepress dev docs --clean-cache",
1717
"docs:serve": "anywhere -h localhost -d docs/.vuepress/dist",
18+
"docs:release": "yarn copy && yarn build && yarn docs:build",
1819
"lint": "eslint --ext .js,.ts,.vue .",
1920
"release": "yarn lint && yarn clean && yarn copy && yarn build && yarn test && lerna publish prerelease --dist-tag next",
2021
"test": "jest --runInBand"

0 commit comments

Comments
 (0)