-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
35 lines (34 loc) · 1.36 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
name: 'Webpack stats diff'
description: 'Adds a comment to your pull request with a summary of webpack stats changes between two builds'
inputs:
diff-threshold:
description: 'Report any change in bundle size if it changed by more than "diff-threshold"'
required: true
default: '.05'
increase-label:
description: 'The label to add to PRs that increased the size of any bundle'
required: true
default: '⚠️ bundle increase'
decrease-label:
description: 'The label to add to PRs that decreased the size of any bundle'
required: true
default: '🎉 bundle decrease'
violation-label:
description: 'The label to add to PRs that decreased the size of any bundle'
required: true
default: '❌ bundle budget violation'
base-bundle-analysis-report-path:
description: 'The path to the json webpack-bundle-analyzer report file for the base branch'
required: true
head-bundle-analysis-report-path:
description: 'The path to the json webpack-bundle-analyzer report file for the head branch'
required: true
github-token:
description: 'The Github token used to comment on pull requests'
required: true
should-block-pr-on-exceeded-budget:
description: 'if targeted-bundles is declared, fail build if budget is exceeded for a targeted bundle'
required: false
runs:
using: 'node12'
main: 'dist/index.js'