File tree Expand file tree Collapse file tree 5 files changed +5291
-21307
lines changed Expand file tree Collapse file tree 5 files changed +5291
-21307
lines changed Original file line number Diff line number Diff line change @@ -31,31 +31,32 @@ jobs:
31
31
fetch-depth : 0
32
32
- uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
33
33
with :
34
- node-version : 18
35
- cache : npm
36
- cache-dependency-path : ' userdocs/package-lock.json '
34
+ node-version : 22
35
+ cache : yarn
36
+ cache-dependency-path : ' userdocs/yarn.lock '
37
37
- name : Setup Pages
38
38
id : pages
39
39
uses : actions/configure-pages@v3
40
40
- name : Install dependencies
41
41
working-directory : ./userdocs
42
- run : npm install
42
+ run : yarn install --frozen-lockfile
43
43
- name : Build website
44
44
working-directory : ./userdocs
45
- run : npm run build
45
+ run : yarn build
46
46
- name : Upload artifact
47
47
uses : actions/upload-pages-artifact@v1
48
48
with :
49
49
path : ./build
50
50
51
51
# Deployment job
52
52
deploy :
53
+ name : Deploy to GitHub pages
54
+ needs : build
53
55
environment :
54
56
name : github-pages
55
57
url : ${{ steps.deployment.outputs.page_url }}
56
58
runs-on : ubuntu-latest
57
- needs : build
58
59
steps :
59
60
- name : Deploy to GitHub Pages
60
61
id : deployment
61
- uses : actions/deploy-pages@v2
62
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 6
6
- main
7
7
8
8
jobs :
9
- test-deploy :
10
- name : Test docs build
9
+ build :
10
+ name : Build docusaurus
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- name : Checkout
@@ -16,15 +16,12 @@ jobs:
16
16
fetch-depth : 0
17
17
- uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
18
18
with :
19
- node-version : 18
20
- cache : npm
21
- cache-dependency-path : ' userdocs/package-lock.json'
22
- - name : Setup Pages
23
- id : pages
24
- uses : actions/configure-pages@v3
19
+ node-version : 22
20
+ cache : yarn
21
+ cache-dependency-path : ' userdocs/yarn.lock'
25
22
- name : Install dependencies
26
23
working-directory : ./userdocs
27
- run : npm install
24
+ run : yarn install --frozen-lockfile
28
25
- name : Build website
29
26
working-directory : ./userdocs
30
- run : npm run build
27
+ run : yarn build
You can’t perform that action at this time.
0 commit comments