⬆️ Updates actions/checkout action to v4 #778
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: Package size | |
on: | |
push: | |
branches: [ main, master ] | |
pull_request: | |
branches: [ main, master ] | |
jobs: | |
package-size: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '*' | |
check-latest: true | |
- name: Install dependencies | |
run: npm install --production --no-audit | |
- name: Get size | |
run: du -sk node_modules | cut -f1 > .delta.packageSize && echo "kb (Package size)" >> .delta.packageSize | |
- name: Run Delta | |
uses: netlify/delta-action@v1 | |
with: | |
title: '📊 Benchmark results' | |
token: ${{ secrets.GITHUB_TOKEN }} |