Skip to content

Commit

Permalink
Issue-430 - Publish typedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
huntharo committed May 22, 2024
1 parent c6c0700 commit e32f58e
Show file tree
Hide file tree
Showing 3 changed files with 213 additions and 6 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Docs

on:
release:
types: [published]

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: ./.github/actions/configure-nodejs

- name: Build Docs
run: npm run build:docs

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
192 changes: 186 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"scripts": {
"build": "tsc",
"build:docs": "typedoc ./index.ts",
"prepare": "husky install",
"prepublishOnly": "rm -rf dist && npm run test",
"test": "eslint lib/* ./cli.ts && tsc && jest ./tests/sitemap*",
Expand Down Expand Up @@ -181,6 +182,7 @@
"stats-lite": "^2.2.0",
"stream-json": "^1.7.1",
"through2-map": "^3.0.0",
"typedoc": "0.25.13",
"typescript": "^4.2.4"
},
"engines": {
Expand Down

0 comments on commit e32f58e

Please sign in to comment.