also tag on release #3
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: Build docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository. | |
contents: write | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup Node.js 18.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18.x" | |
cache: "yarn" | |
- run: yarn install --immutable | |
- name: Create Docs | |
run: | | |
yarn workspaces foreach --all --include "@apollo/*" run build | |
yarn workspaces foreach --all --include "@apollo/*" exec api-extractor run | |
yarn workspace monorepo docs | |
- name: Commit changes back | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "Update Docs" | |
push_options: "" | |
skip_dirty_check: false |