File tree Expand file tree Collapse file tree 6 files changed +571
-15
lines changed Expand file tree Collapse file tree 6 files changed +571
-15
lines changed Original file line number Diff line number Diff line change 6
6
github_token :
7
7
description : GitHub token
8
8
required : true
9
+ chromatic_token :
10
+ description : Chromatic token
11
+ required : true
9
12
10
13
runs :
11
14
using : composite
23
26
shell : bash
24
27
run : npx nx build headless
25
28
29
+ - name : Build storybook
30
+ shell : bash
31
+ run : npx nx build-storybook headless
32
+
33
+ - name : Publish to Chromatic
34
+ uses : chromaui/action@v1
35
+ # Chromatic GitHub Action options
36
+ with :
37
+ # 👇 Chromatic projectToken, refer to the manage page to obtain it.
38
+ projectToken : ${{ inputs.chromatic_token }}
39
+ storybookBuildDir : dist/storybook/headless
40
+ zip : true
41
+
26
42
# - name: Build Tailwind Theme
27
43
# shell: bash
28
44
# run: npx nx build tailwind
Original file line number Diff line number Diff line change 28
28
uses : ./.github/actions/test
29
29
with :
30
30
github_token : ${{ secrets.GITHUB_TOKEN }}
31
+ chromatic_token : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
Original file line number Diff line number Diff line change 11
11
"commit" : " git-cz" ,
12
12
"format:fix" : " pretty-quick --staged" ,
13
13
"prepare" : " husky install" ,
14
- "test:headless" : " nx component-test headless --watch"
14
+ "test:headless" : " nx component-test headless --watch" ,
15
+ "story:headless" : " nx build-storybook headless"
15
16
},
16
17
"devDependencies" : {
17
18
"@builder.io/qwik" : " 1.0.0" ,
50
51
"all-contributors-cli" : " ^6.24.0" ,
51
52
"autoprefixer" : " ^10.4.13" ,
52
53
"axe-core" : " 4.6.3" ,
54
+ "chromatic" : " 6.17.3" ,
53
55
"commitizen" : " ^4.3.0" ,
54
56
"commitlint" : " ^17.4.3" ,
55
57
"country-list-json" : " 1.1.0" ,
Original file line number Diff line number Diff line change 20
20
"node" : " >=16.0.0"
21
21
},
22
22
"private" : false ,
23
- "scripts" : {
24
- "build" : " qwik build" ,
25
- "build.lib" : " vite build --mode lib" ,
26
- "build.types" : " tsc --emitDeclarationOnly" ,
27
- "dev" : " vite --mode ssr" ,
28
- "dev.debug" : " node --inspect-brk ./node_modules/vite/bin/vite.js --mode ssr --force" ,
29
- "fmt" : " prettier --write ." ,
30
- "fmt.check" : " prettier --check ." ,
31
- "release" : " np" ,
32
- "start" : " vite --open --mode ssr" ,
33
- "qwik" : " qwik" ,
34
- "storybook1" : " storybook dev -p 6006" ,
35
- "build-storybook1" : " storybook build"
36
- },
23
+ "scripts" : {},
37
24
"dependencies" : {
38
25
"@floating-ui/dom" : " 1.0.10"
39
26
}
Original file line number Diff line number Diff line change 94
94
}
95
95
}
96
96
},
97
+ "test-storybook" : {
98
+ "executor" : " nx:run-commands" ,
99
+ "options" : {
100
+ "command" : " pnpm test-storybook --url http://localhost:4400" ,
101
+ "cwd" : " packages/headless"
102
+ }
103
+ },
97
104
"component-test" : {
98
105
"executor" : " @nx/cypress:cypress" ,
99
106
"options" : {
You can’t perform that action at this time.
0 commit comments