ci: add built-artifact release gate (#765) #563
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: Check if Reference Docs need to be regenerated | |
| on: | |
| pull_request | |
| # Least privilege. This workflow only regenerates docs and diffs them; it never | |
| # pushes. | |
| permissions: | |
| contents: read | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| name: Build | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 | |
| with: | |
| persist-credentials: false | |
| - name: Setup node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| - name: Install deps | |
| run: npm ci | |
| - name: Generate reference docs | |
| run: npm run docs | |
| - name: Check for diff | |
| run: git diff --exit-code -- 'docs/reference***.md' | |