This repository has been archived by the owner on May 29, 2024. It is now read-only.
Merge pull request #15 from m00sey/feat/le-coverage #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Documentation | |
on: | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
jobs: | |
update: | |
name: Update documentation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18.12.1' | |
cache: 'npm' | |
- name: build | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git rebase main | |
yarn | |
yarn typedoc src/index.ts | |
git add . | |
git commit -a -m "Update documentation" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |