File tree 1 file changed +16
-36
lines changed
1 file changed +16
-36
lines changed Original file line number Diff line number Diff line change 5
5
- gh-pages
6
6
workflow_dispatch :
7
7
pull_request :
8
+
8
9
jobs :
9
10
build :
10
11
name : Build and Deploy
11
12
runs-on : ubuntu-latest
12
13
steps :
13
- - uses : actions/setup-node@v2-beta
14
+ - uses : actions/setup-node@v3
14
15
with :
15
- node-version : ' 12 '
16
+ node-version : 16
16
17
- name : Checkout Repository
17
- uses : actions/checkout@v2
18
- with :
19
- fetch-depth : ' 0'
20
- persist-credentials : false
21
- submodules : ' recursive'
18
+ uses : actions/checkout@v3
19
+ # with:
20
+ # persist-credentials: false
22
21
- name : Install
23
- run : npm install
22
+ run : npm ci
24
23
- name : Build
25
24
run : npm run build
26
25
- name : Deploy
27
- uses : JamesIves/github-pages-deploy-action@3.7.1
26
+ uses : JamesIves/github-pages-deploy-action@v4.4.0
28
27
if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master'}}
29
28
with :
30
- ACCESS_TOKEN : ${{ secrets.ACCESS_TOKEN }}
31
- BRANCH : gh-pages
32
- FOLDER : .vuepress/dist/
33
- CLEAN : true
29
+ token : ${{ secrets.ACCESS_TOKEN }}
30
+ folder : .vuepress/dist/
31
+ clean : true
32
+
34
33
lint :
35
34
name : Lint
36
35
runs-on : ubuntu-latest
37
36
steps :
38
- - uses : actions/setup-node@v2-beta
37
+ - uses : actions/setup-node@v3
39
38
with :
40
- node-version : ' 12 '
39
+ node-version : 16
41
40
- name : Checkout Repository
42
- uses : actions/checkout@v2
43
- with :
44
- fetch-depth : ' 0'
45
- submodules : ' recursive'
41
+ uses : actions/checkout@v3
46
42
- name : Install
47
- run : npm install
43
+ run : npm ci
48
44
- name : Lint
49
45
run : npm run lint-ci
50
- spellcheck :
51
- name : Spellcheck
52
- runs-on : ubuntu-latest
53
- steps :
54
- - uses : actions/setup-node@v2-beta
55
- with :
56
- node-version : ' 12'
57
- - name : Checkout Repository
58
- uses : actions/checkout@v2
59
- with :
60
- fetch-depth : ' 0'
61
- submodules : ' recursive'
62
- - name : Install
63
- run : npm install
64
- - name : Spellcheck
65
- run : npm run spellcheck
You can’t perform that action at this time.
0 commit comments