fix: multiple equals not parsing correctly #9
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 Typedoc to Github Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Fetch all history for all branches and tags | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '21' | |
cache: 'npm' | |
- uses: oleksiyrudenko/gha-git-credentials@v2-latest | |
with: | |
token: '${{ secrets.GITHUB_TOKEN }}' | |
- run: corepack enable yarn | |
- run: yarn install | |
- name: Configure Git | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- name: Create or switch to typedoc branch | |
run: | | |
git checkout typedoc || git checkout -b typedoc | |
git pull origin typedoc || true | |
- name: Merge main into typedoc | |
run: | | |
git merge origin/main --allow-unrelated-histories -X theirs | |
- run: yarn typedoc | |
- name: Commit and push changes | |
run: | | |
git add . | |
git diff --staged --quiet || git commit -m "Update typedoc to commit $(git rev-parse --short HEAD)" | |
git push origin typedoc |