This repository was archived by the owner on Feb 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +122
-70
lines changed Expand file tree Collapse file tree 5 files changed +122
-70
lines changed Original file line number Diff line number Diff line change 12
12
13
13
strategy :
14
14
matrix :
15
- node-version : [14.x ]
15
+ node-version : ["lts/*" ]
16
16
17
17
steps :
18
18
- name : Checkout repository
@@ -21,14 +21,14 @@ jobs:
21
21
token : ${{ github.token }}
22
22
23
23
- name : Use Node.js ${{ matrix.node-version }}
24
- uses : actions/setup-node@v2.5.1
24
+ uses : actions/setup-node@v2
25
25
with :
26
26
node-version : ${{ matrix.node-version }}
27
27
28
28
- name : Update NPM
29
29
run : npm i -g npm@latest
30
30
31
- - name : Cache NPM dependencies
31
+ - name : Cache NPM Dependencies
32
32
uses : actions/cache@v2
33
33
with :
34
34
path : ~/.npm
@@ -38,21 +38,18 @@ jobs:
38
38
${{ runner.os }}-build-
39
39
${{ runner.os }}-
40
40
41
- - name : Install Docs
41
+ - name : Install Dependencies
42
42
run : |
43
- cd docs
44
- npm i
43
+ cd frontend
44
+ npm i --legacy-peer-deps
45
+ cd ../docs
46
+ npm i --legacy-peer-deps
45
47
46
48
- name : Lint Docs
47
49
run : |
48
50
cd docs
49
51
npx markdownlint 'docs/**/*.md'
50
52
51
- - name : Install Frontend
52
- run : |
53
- cd frontend
54
- npm i
55
-
56
53
- name : Lint Frontend
57
54
run : |
58
55
cd frontend
Original file line number Diff line number Diff line change
1
+ name : Chromatic
2
+
3
+ on :
4
+ pull_request :
5
+ branches : canary
6
+
7
+ workflow_dispatch :
8
+
9
+ jobs :
10
+ chromatic :
11
+ runs-on : ubuntu-latest
12
+
13
+ strategy :
14
+ matrix :
15
+ node-version : ["lts/*"]
16
+
17
+ steps :
18
+ - name : Checkout Repository
19
+ uses : actions/checkout@v2
20
+ with :
21
+ token : ${{ github.token }}
22
+ fetch-depth : 0
23
+
24
+ - name : Use Node.js ${{ matrix.node-version }}
25
+ uses : actions/setup-node@v2
26
+ with :
27
+ node-version : ${{ matrix.node-version }}
28
+
29
+ - name : Update NPM
30
+ run : npm i -g npm@latest
31
+
32
+ - name : Cache NPM Dependencies
33
+ uses : actions/cache@v2
34
+ with :
35
+ path : ~/.npm
36
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
37
+ restore-keys : |
38
+ ${{ runner.os }}-build-${{ env.cache-name }}-
39
+ ${{ runner.os }}-build-
40
+ ${{ runner.os }}-
41
+
42
+ - name : Install Dependencies
43
+ run : |
44
+ cd frontend
45
+ npm i --legacy-peer-deps
46
+
47
+ - name : Publish to Chromatic
48
+ uses : chromaui/action@v1
49
+ with :
50
+ token : ${{ github.token }}
51
+ projectToken : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
52
+ workingDir : frontend
53
+ exitZeroOnChanges : true
54
+ exitOnceUploaded : true
55
+ skip : " dependabot/**"
Original file line number Diff line number Diff line change 1
- name : ' CodeQL'
1
+ name : " CodeQL"
2
2
3
3
on :
4
4
schedule :
5
- - cron : ' 0 0 * * *'
5
+ - cron : " 0 0 * * *"
6
6
7
7
workflow_dispatch :
8
8
18
18
strategy :
19
19
fail-fast : false
20
20
matrix :
21
- language : [' javascript' ]
21
+ language : [" javascript" ]
22
22
23
23
steps :
24
24
- name : Checkout repository
Original file line number Diff line number Diff line change 61
61
},
62
62
"devDependencies" : {
63
63
"@arkweid/lefthook" : " ^0.7.7" ,
64
- "@babel/core" : " ^7.16.7 " ,
64
+ "@babel/core" : " ^7.16.10 " ,
65
65
"@next/bundle-analyzer" : " ^12.0.8" ,
66
66
"@storybook/addon-a11y" : " ^6.4.13" ,
67
67
"@storybook/addon-essentials" : " ^6.4.13" ,
78
78
"eslint-config-next" : " ^12.0.8" ,
79
79
"eslint-config-prettier" : " ^8.3.0" ,
80
80
"eslint-plugin-jest" : " ^25.7.0" ,
81
- "eslint-plugin-jsdoc" : " ^37.6.1 " ,
81
+ "eslint-plugin-jsdoc" : " ^37.6.2 " ,
82
82
"eslint-plugin-prettier" : " ^4.0.0" ,
83
83
"identity-obj-proxy" : " ^3.0.0" ,
84
84
"jest" : " ^27.4.7" ,
You can’t perform that action at this time.
0 commit comments