feat: add deploy-specific environment variable support to netlify deploy
#25448
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: Verify Docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - '**' | |
| - '!release-please--**' | |
| jobs: | |
| verify-docs: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Read primary Node version | |
| id: node | |
| run: echo "version=$(yq eval '.primary_node_version' .github/test-matrix.yml)" >> "$GITHUB_OUTPUT" | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: ${{ steps.node.outputs.version }} | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci --no-audit | |
| - name: Install ./site dependencies | |
| run: npm ci --prefix=site --no-audit | |
| - name: Generate docs | |
| run: npm run --prefix=site build | |
| - name: Check for changes | |
| run: | | |
| if [ -z "$(git status --porcelain)" ]; then | |
| echo "No changes to docs files detected" | |
| else | |
| echo "Changes to docs files detected, please run 'npm run docs' to sync docs" | |
| exit 1 | |
| fi |