Skip to content

Commit 897e756

Browse files
authored
fix: github workflow for API docs publishing (#151)
* fix: github workflow for API docs publishing * docs: remove placeholder directory
1 parent 057420f commit 897e756

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
- name: Update docs
4848
run: |
4949
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
50+
yarn doc
5051
yarn gh-pages -d docs -u "github-actions-bot <[email protected]>"
5152
env:
5253
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ coverage/
4747
*keypair.json
4848

4949
# Docs
50-
**/docs
50+
docs
5151

5252
# Bundle stats file
5353
stats.html
@@ -58,4 +58,4 @@ stats.html
5858
!.yarn/plugins
5959
!.yarn/releases
6060
!.yarn/sdks
61-
!.yarn/versions
61+
!.yarn/versions

docs/.gitkeep

Whitespace-only changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"scripts": {
3030
"doc": "typedoc",
31-
"doc:update": "yarn doc && ./sh/update-docs",
31+
"doc:update": "yarn doc && ./sh/publish-docs",
3232
"build": "rimraf lib && rollup -c",
3333
"dev": "rollup -c --watch",
3434
"lint": "eslint \"{src,test}/**/*.ts\" --format stylish",
File renamed without changes.

0 commit comments

Comments
 (0)