Skip to content

Commit

Permalink
ci: add package size reports (#236)
Browse files Browse the repository at this point in the history
* ci: add package size reports

* chore: update deps
  • Loading branch information
lukasholzer authored Feb 6, 2024
1 parent 309d127 commit 101aea6
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/size-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Package Size Report

on:
pull_request:
branches:
- main

jobs:
pkg-size-report:
name: Package Size Report
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install Deno
uses: denoland/setup-deno@v1
with:
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/edge-bundler/blob/main/node/bridge.ts#L17
deno-version: v1.37.0
- run: npm ci

- name: Package size report
uses: pkg-size/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
display-size: uncompressed, gzip

0 comments on commit 101aea6

Please sign in to comment.