feat: add netlify push for git-based deploys via Netlify-hosted git
#22169
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: Calculate benchmarks | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| package-size: | |
| if: startsWith(github.head_ref, 'release-please') == false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Git checkout | |
| uses: actions/checkout@v6 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24' | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci --no-audit && npm prune --production | |
| - name: Get size | |
| run: du -sk node_modules | cut -f1 > .delta.packageSize && echo "kb (Package size)" >> .delta.packageSize | |
| - name: Get dependency count | |
| run: | |
| npm ls -a -p | wc -l | tr -d ' \n' > .delta.dependencyCount && echo " (Dependency count)" >> | |
| .delta.dependencyCount | |
| - name: Get TypeScript conversion progress | |
| run: | |
| grep -r --exclude-dir="node_modules" --include="*.ts" "@ts-expect-error" . | wc -l | xargs > | |
| .delta.tsConversion && echo " (Number of ts-expect-error directives)" >> .delta.tsConversion | |
| - name: Save PR number | |
| if: github.event_name == 'pull_request' | |
| run: echo ${{ github.event.number }} > ./pr_number | |
| - name: Upload deltas | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: delta-action-deltas | |
| retention-days: 7 | |
| include-hidden-files: true | |
| path: | | |
| .delta.* | |
| pr_number |