Skip to content

Commit

Permalink
actions
Browse files Browse the repository at this point in the history
  • Loading branch information
glitch-txs committed Feb 21, 2024
1 parent af7c801 commit 4826636
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Measuring Bundle Size

pull_request:
branches:
- main
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v1
- run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
- uses: ./
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
script: pnpm run size
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dev": "turbo run dev --filter=next...",
"build:docs": "turbo run build --filter=docs",
"start:docs": "turbo run start --filter=docs",
"size": "npm run build && size-limit",
"size": "npm run build && size-limit --json",
"clean": "turbo run clean --filter=./packages/**"
},
"devDependencies": {
Expand Down

0 comments on commit 4826636

Please sign in to comment.