-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
48 lines (44 loc) · 1.81 KB
/
action.yml
File metadata and controls
48 lines (44 loc) · 1.81 KB
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
47
48
name: 'Bundle Size Action'
description: 'Compares local build artifact gzip sizes against matching files from npm release baselines.'
author: 'axios'
branding:
icon: 'package'
color: 'blue'
inputs:
path:
description: 'Path to the local project root containing built artifacts.'
required: false
default: '.'
package-name:
description: 'npm package name whose latest and previous releases provide baseline archives.'
required: true
release-stream:
description: 'Optional leading major version number, such as 0 or 1, used to select npm release baselines from that release stream.'
required: false
files:
description: 'Newline-delimited file paths to compare in the local project and npm release baselines.'
required: true
output-file:
description: 'Path, relative to the local project root, where the JSON comparison report will be written.'
required: false
default: 'bundle-size-comparison.json'
markdown-output-file:
description: 'Path, relative to the local project root, where the Markdown comparison report will be written.'
required: false
default: 'bundle-size-comparison.md'
outputs:
size:
description: 'Total current gzip size in bytes for all compared files.'
comparison-file:
description: 'Absolute path to the generated JSON comparison file.'
markdown-file:
description: 'Absolute path to the generated Markdown comparison file.'
total-current-gzip-size:
description: 'Total current gzip size in bytes for all compared files.'
total-baseline-gzip-size:
description: 'Total selected primary-release baseline gzip size in bytes for all compared files.'
total-delta-gzip-size:
description: 'Difference in gzip bytes between current and selected primary-release baseline totals.'
runs:
using: 'node24'
main: 'dist/index.js'