Skip to content

Merge pull request #58 from techfg/fix/links-outside-collection-dir-a… #1

Merge pull request #58 from techfg/fix/links-outside-collection-dir-a…

Merge pull request #58 from techfg/fix/links-outside-collection-dir-a… #1

name: Update Generated Docs (typedoc)
on:
push:
branches:
- main
workflow_dispatch:
branches:
- main
permissions:
contents: write
jobs:
update_generated_docs:
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-latest
environment:
name: npm-publish
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "yarn"
- name: Install Dependencies
run: yarn --immutable
- name: "Generate and commit ./docs"
run: |
yarn generate-docs
git add ./docs
if [ ! -n "$(git status -s)" ]; then
echo "NOTHING TO COMMIT"
else
git config user.name "Alex Vernacchia"
git config user.email "[email protected]"
git commit -m "[skip ci] Update generated docs (docs/)"
git push --no-verify
fi