File tree 4 files changed +51
-52
lines changed
4 files changed +51
-52
lines changed Original file line number Diff line number Diff line change 1
- name : " Chromatic "
1
+ name : " Build "
2
2
3
3
on :
4
4
push :
13
13
- ' astro.config.mjs'
14
14
workflow_dispatch :
15
15
inputs :
16
- my_input :
16
+ title :
17
17
description : ' testing e2e'
18
- required : true
18
+ required : false
19
19
20
20
jobs :
21
21
install :
@@ -25,43 +25,14 @@ jobs:
25
25
discussions : write
26
26
runs-on : ubuntu-latest
27
27
steps :
28
- - name : Checkout code
29
- uses : actions/checkout@v4
30
- with :
31
- fetch-depth : 0
32
- - name : Install pnpm
33
- uses : pnpm/action-setup@v4
34
- with :
35
- version : 9
36
- - name : Use Node.js ${{ matrix.node-version }}
37
- uses : actions/setup-node@v4
38
- with :
39
- node-version : ${{ matrix.node-version }}
40
- cache : ' pnpm'
41
- - name : Install dependencies
42
- run : pnpm install
43
- build :
44
- name : Build Project
45
- needs : install
46
- runs-on : ubuntu-latest
47
- steps :
28
+ - name : linter
29
+ uses : ./.github/workflows/lint.yml
48
30
- name : build blogger template
49
31
run : pnpm build
50
- - name : build storybook
51
- run : pnpm build-storybook
52
- - uses : montudor/action-zip@v1
53
- with :
54
- args : zip -qq -r storybook-static.zip storybook-static
55
- released :
56
- name : Released Project
57
- needs : build
58
- runs-on : ubuntu-latest
59
- steps :
60
32
- name : Release with Notes
61
33
uses : softprops/action-gh-release@v2
62
34
with :
63
35
files : |
64
36
dist/blogger.xml
65
- storybook-static.zip
66
37
env :
67
38
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
paths :
6
6
- ' src/view/**'
7
+ - ' .github/workflows/chromatic.yml'
7
8
workflow_dispatch :
8
9
inputs :
9
10
my_input :
@@ -15,23 +16,20 @@ jobs:
15
16
name : Run Chromatic
16
17
runs-on : ubuntu-latest
17
18
steps :
18
- - name : Checkout code
19
- uses : actions/checkout@v4
20
- with :
21
- fetch-depth : 0
22
- - name : Install pnpm
23
- uses : pnpm/action-setup@v4
24
- with :
25
- version : 9
26
- - name : Use Node.js ${{ matrix.node-version }}
27
- uses : actions/setup-node@v4
28
- with :
29
- node-version : ${{ matrix.node-version }}
30
- cache : ' pnpm'
31
- - name : Install dependencies
32
- run : pnpm install
19
+ - name : linter
20
+ uses : ./.github/workflows/lint.yml
33
21
- name : Run Chromatic
34
22
uses : chromaui/action@latest
35
23
with :
36
- # ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret
37
- projectToken : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
24
+ projectToken : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
25
+ exitOnceUploaded : true
26
+ onlyChanged : true
27
+ traceChanged : true
28
+ diagnostics : true
29
+ skip : ${{ github.event.pull_request.draft == true }}
30
+ - uses : actions/upload-artifact@v4
31
+ with :
32
+ name : chromatic-build-artifacts-${{ github.run_id }}
33
+ path : |
34
+ chromatic-diagnostics.json
35
+ **/build-storybook.log
Original file line number Diff line number Diff line change
1
+ name : " Lint code"
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - ' !src/view/**'
7
+ - ' src/**/*.ts'
8
+ workflow_call :
9
+
10
+ jobs :
11
+ check :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Checkout code
15
+ uses : actions/checkout@v4
16
+ with :
17
+ fetch-depth : 0
18
+ - name : Install pnpm
19
+ uses : pnpm/action-setup@v4
20
+ with :
21
+ version : 9
22
+ - name : Use Node.js ${{ matrix.node-version }}
23
+ uses : actions/setup-node@v4
24
+ with :
25
+ node-version : ${{ matrix.node-version }}
26
+ cache : ' pnpm'
27
+ - name : Install dependencies
28
+ run : pnpm install
29
+ - name : eslint
30
+ run : pnpm lint
Original file line number Diff line number Diff line change 1
- name : " Chromatic "
1
+ name : " Pagespeed "
2
2
3
3
on :
4
4
workflow_dispatch :
You can’t perform that action at this time.
0 commit comments