Skip to content

Commit 101aea6

Browse files
authored
ci: add package size reports (#236)
* ci: add package size reports * chore: update deps
1 parent 309d127 commit 101aea6

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/size-check.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Package Size Report
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
pkg-size-report:
10+
name: Package Size Report
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '18.x'
21+
cache: 'npm'
22+
cache-dependency-path: '**/package-lock.json'
23+
- name: Install Deno
24+
uses: denoland/setup-deno@v1
25+
with:
26+
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/edge-bundler/blob/main/node/bridge.ts#L17
27+
deno-version: v1.37.0
28+
- run: npm ci
29+
30+
- name: Package size report
31+
uses: pkg-size/action@v1
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
with:
35+
display-size: uncompressed, gzip

0 commit comments

Comments
 (0)