Merge pull request #16 from wdhdev/renovate/actions-checkout-7.x #31
This file contains hidden or 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: Documentation | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "src/**" | |
| - ".github/workflows/docs.yml" | |
| - "package-lock.json" | |
| - "package.json" | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: "24.x" | |
| registry-url: "https://registry.npmjs.org" | |
| - run: npm install -g documentation | |
| - run: npm run build-docs | |
| - name: Commit | |
| run: | | |
| git config --global user.email "actions@github.com" | |
| git config --global user.name "GitHub Actions" | |
| git add docs/** | |
| git commit -m "chore: build docs" | |
| git push |