chore(deps): bump actions/setup-node from 3 to 4 #156
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: Generate and commit docs | |
on: [pull_request] | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 8.15.9 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'pnpm' | |
- name: Cache NPM dependencies | |
uses: actions/cache@v4 | |
id: cache | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('pnpm-lock.yaml') }} | |
- run: pnpm run bootstrap | |
# Exclude the build of sdk and colony-js as it's not necessary for the docs to build | |
- run: pnpm --filter '!sdk' --filter '!colony-js' run build | |
- run: pnpm run build-docs | |
env: | |
NODE_OPTIONS: --max-old-space-size=4096 | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "chore: generate docs" |