forked from chromaui/action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
executable file
·97 lines (94 loc) · 3.68 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Publish to Chromatic
author: Chroma Software, Inc.
description: 'Publish your Storybook to Chromatic and run visual regression tests'
branding:
icon: 'aperture'
color: 'orange'
inputs:
token:
description: 'Your github token'
required: true
projectToken:
description: 'Your chromatic project token'
required: true
workingDir:
description: 'Working directory for the package.json file'
required: false
appCode:
description: 'Deprecated, please use projectToken instead'
required: false
buildScriptName:
description: 'The npm script that builds your Storybook [build-storybook]'
required: false
scriptName:
description: 'The npm script that starts your Storybook [storybook]'
required: false
exec:
description: 'Alternatively, a full command to run to start your storybook'
required: false
skip:
description: 'Skip Chromatic tests, but mark the commit as passing'
required: false
only:
description: 'Only run a single story or a subset of stories'
required: false
onlyChanged:
description: 'Only run stories affected by files changed since the baseline build'
required: false
externals:
description: 'When any of these files have changed since the baseline build, ignore onlyChanged'
required: false
doNotStart:
description: 'Do not attempt to start or build; use if your Storybook is already running'
required: false
storybookBuildDir:
description: 'Provide a directory with your built storybook; use if you have already built your storybook'
required: false
storybookCa:
description: 'Use if Storybook is running on https (auto detected from -s, if set)'
required: false
storybookCert:
description: 'Use if Storybook is running on https (auto detected from -s, if set)'
required: false
storybookHttps:
description: 'Use if Storybook is running on https (auto detected from -s, if set)'
required: false
storybookKey:
description: 'Use if Storybook is running on https (auto detected from -s, if set)'
required: false
storybookPort:
description: 'What port is your Storybook running on (auto detected from -s, if set)'
required: false
storybookUrl:
description: 'Storybook is already running at (external) url (implies -S)'
required: false
preserveMissing:
description: 'Pass the baselines forward and treat all missing stories as “preserved” without re-capturing them'
required: false
autoAcceptChanges:
description: 'Automatically accept all changes in chromatic: boolean or branchname'
required: false
allowConsoleErrors:
description: 'Do not exit when runtime errors occur in storybook'
required: false
exitZeroOnChanges:
description: 'Positive exit of action even when there are changes: boolean or branchname'
required: false
exitOnceUploaded:
description: 'Exit with 0 once the built version has been sent to chromatic: boolean or branchname'
required: false
ignoreLastBuildOnBranch:
description: 'Do not use the last build on this branch as a baseline if it is no longer in history (i.e. branch was rebased)'
required: false
outputs:
url:
description: 'An alias for the build URL (e.g. https://www.chromatic.com/build?appId=<app id goes here>&number=<build number>)'
buildUrl:
description: 'The build URL (e.g. https://www.chromatic.com/build?appId=<app id goes here>&number=<build number>)'
storybookUrl:
description: 'The Storybook preview URL for your current branch / Pull Request (e.g. https://<app id goes here>-<branch hash>.chromatic.com/)'
code:
description: 'The exit code for the current run of the Chromatic CLI'
runs:
main: action/register.js
using: node12