Skip to content

Commit 178b17b

Browse files
committed
ci: add package size report GitHub Action
1 parent fe1de94 commit 178b17b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Package Size Report
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
pkg-size-report:
9+
name: Package Size Report
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: navikt/github-app-token-generator@793caf0d755fb4d6e88150825f680f188535cb48
14+
id: get-token
15+
with:
16+
private-key: ${{ secrets.TOKENS_PRIVATE_KEY }}
17+
app-id: ${{ secrets.TOKENS_APP_ID }}
18+
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: 'lts'
26+
27+
- name: Package size report
28+
uses: pkg-size/[email protected]
29+
env:
30+
GITHUB_TOKEN: ${{ steps.get-token.outputs.token }}

0 commit comments

Comments
 (0)