File tree Expand file tree Collapse file tree 3 files changed +40
-6
lines changed Expand file tree Collapse file tree 3 files changed +40
-6
lines changed Original file line number Diff line number Diff line change 2
2
on :
3
3
pull_request :
4
4
push :
5
- branches :
5
+ branches :
6
6
- master
7
7
jobs :
8
8
lighthouse_ci :
@@ -13,18 +13,18 @@ jobs:
13
13
14
14
- name : git clone
15
15
uses : actions/checkout@v1
16
-
17
- - name : setup node .js
18
- uses : actions/setup-node@v1
16
+
17
+ - name : Set up Node .js
18
+ uses : actions/setup-node@v3
19
19
with :
20
- node-version : 14.x
20
+ node-version-file : ' .nvmrc '
21
21
22
22
- name : build
23
23
run : npm i && npm run build
24
24
25
25
- name : install lhci
26
26
run : npm install @lhci/cli@latest
27
-
27
+
28
28
- name : run lhci
29
29
run : |
30
30
npx lhci autorun \
Original file line number Diff line number Diff line change
1
+ name : update-devtools-protocol-gh-pages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ schedule :
8
+ # Run daily at 05:20 UTC.
9
+ - cron : ' 20 5 * * *'
10
+ workflow_dispatch :
11
+
12
+ jobs :
13
+ update-devtools-protocol-gh-pages :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Check out
17
+ uses : actions/checkout@v2
18
+ with :
19
+ ref : ${{ github.head_ref }}
20
+ token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
21
+ # Fetching full history is required for the changelog script.
22
+ fetch-depth : 0
23
+
24
+ - name : Set up Node.js
25
+ uses : actions/setup-node@v3
26
+ with :
27
+ node-version-file : ' .nvmrc'
28
+
29
+ - name : Update devtools-protocol gh-pages
30
+ run : |
31
+ npm install
32
+ npm run build
33
+ npm run deploy
Original file line number Diff line number Diff line change
1
+ 14
You can’t perform that action at this time.
0 commit comments