File tree 6 files changed +47
-1781
lines changed
6 files changed +47
-1781
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- master
7
7
8
- env :
9
- NODE_VERSION : 16.x
10
-
11
8
jobs :
12
9
chromatic :
13
10
if : github.repository_owner == 'AxaFrance'
14
11
runs-on : ubuntu-latest
15
12
steps :
16
- - uses : actions/checkout@v2
13
+ - uses : actions/checkout@v4
17
14
with :
18
15
fetch-depth : 0 # 👈 Required to retrieve git history for Chromatic
19
16
- name : Use Node.js
20
- uses : actions/setup-node@v2
17
+ uses : actions/setup-node@v4
21
18
with :
22
- node-version : ${{ env.NODE_VERSION }}
19
+ node-version : ' * '
23
20
registry-url : ' https://registry.npmjs.org'
24
21
cache : ' npm'
25
22
- run : npm ci
26
23
- run : npm run build
24
+ - run : npm run storybook:build
27
25
- name : Publish to Chromatic
28
- uses : chromaui/action@v1
26
+ uses : chromaui/action@latest
29
27
with :
30
28
token : ${{ secrets.GITHUB_TOKEN }}
31
29
projectToken : 2af88e64d1ab
32
30
exitOnceUploaded : true
31
+ storybookBuildDir : storybook-static
Original file line number Diff line number Diff line change @@ -10,21 +10,23 @@ jobs:
10
10
if : github.repository_owner == 'AxaFrance'
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v2
13
+ - uses : actions/checkout@v4
14
14
with :
15
15
fetch-depth : 0 # 👈 Required to retrieve git history
16
16
- name : Use Node.js
17
- uses : actions/setup-node@v2
17
+ uses : actions/setup-node@v4
18
18
with :
19
- node-version : 16.x
19
+ node-version : ' * '
20
20
cache : ' npm'
21
21
- run : npm ci
22
22
- run : npm run build
23
23
- run : npm run check
24
24
- run : npm test -- --coverage
25
+ - run : npm run storybook:build
25
26
- name : Publish to Chromatic
26
- uses : chromaui/action@v1
27
+ uses : chromaui/action@latest
27
28
with :
28
29
token : ${{ secrets.GITHUB_TOKEN }}
29
30
projectToken : 2af88e64d1ab
30
31
exitOnceUploaded : true
32
+ storybookBuildDir : storybook-static
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ module.exports = {
48
48
'@storybook/addon-essentials' ,
49
49
'@storybook/addon-storysource' ,
50
50
'@storybook/addon-a11y' ,
51
- 'storybook-readme' ,
52
51
] ,
53
52
webpackFinal : async ( config ) => {
54
53
config . module . rules . push ( {
Original file line number Diff line number Diff line change 1
- import { addReadme } from 'storybook-readme' ;
2
1
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport' ;
3
2
4
3
import '../packages/all/dist/style/af-toolkit-core.css' ;
5
4
import '../packages/core/dist/assets/fonts/icons/af-icons.css' ;
6
5
import './storybook.css' ;
7
6
8
- export const decorators = [ addReadme ] ;
7
+ export const decorators = [ ] ;
9
8
10
9
export const parameters = {
11
10
actions : { argTypesRegex : '^on.*' } ,
You can’t perform that action at this time.
0 commit comments