forked from pkg-size/action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
46 lines (46 loc) · 1.43 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: 'pkg-size'
description: 'Report npm package size for all AWS Lambda Powertools utils on PRs'
author: 'AWS Lambda Powertools for TypeScript Team <aws-lambda-powertools-typescript@amazon.com'
branding:
icon: 'trending-up'
color: 'white'
inputs:
build-command:
description: 'Command to build the package with'
required: true
work-directory:
description: where the build should run
required: false
dist-directory:
description: where the dist folder is
required: true
skip-npm-ci:
description: 'Skip npm ci'
required: false
comment-report:
description: 'Whether to comment the build size report on the PR or not: true, false'
required: false
mode:
description: 'Report mode: regression (default), head-only'
required: false
display-size:
description: 'What size to display. Comma delimited list for multiple: uncompressed (default), gzip, brotli:'
required: false
unchanged-files:
description: 'Whether to show unchanged files: show, collapse, hide'
required: false
sort-by:
description: 'Which property to sort by: delta (size difference), headSize, baseSize, path'
required: false
sort-order:
description: 'Sort order: desc, asc'
required: false
hide-files:
description: 'Glob pattern to hide files with'
required: false
pr-number:
description: 'Number of the PR to work with'
required: true
runs:
using: 'node16'
main: 'dist/index.js'