Skip to content

docs: add typedoc to generate wiki from jsdoc #1

docs: add typedoc to generate wiki from jsdoc

docs: add typedoc to generate wiki from jsdoc #1

Workflow file for this run

name: Build & Publish Docs to the Wiki
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
install-deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache node modules
id: cache
uses: actions/cache@v3
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
- uses: actions/setup-node@v4
if: steps.cache.outputs.cache-hit != 'true'
with:
node-version: 20.x
- name: NPM install
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
- name: Build Docs
run: npx nx run @bynary/angular-extension:build-docs
- name: Upload Docs to Wiki
uses: OrlovM/Wiki-Action@v1
with:
path: 'docs'
token: ${{ secrets.GITHUB_TOKEN }}