@@ -10,27 +10,27 @@ jobs:
1010 name : Build Docs
1111 runs-on : ubuntu-latest
1212 steps :
13- - name : Checkout the project
14- uses : actions/checkout@v2
15- - name : Cache node modules
16- uses : actions/cache@v1
17- with :
18- path : ~/.npm
19- key : ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
20- restore-keys : |
21- ${{ runner.os }}-node-
22- - name : Use Node.js 13.11.0
23- uses : actions/setup-node@v1
24- with :
25- node-version : 13.11.0
26- - name : Install dependencies
27- run : npm i
28- - name : Build Docs
29- run : npm run build:docs:reference
30- - name : Commit & Push Docs Data
31- run : |
32- git config --local user.email "actions@github.com"
33- git config --local user.name "Actions Auto Build"
34- git add docs/_data/reference.json
35- git commit -m "docs: compile reference.json" || true
36- git push --force origin HEAD:refs/heads/docs
13+ - name : Checkout the project
14+ uses : actions/checkout@v2
15+ - name : Cache node modules
16+ uses : actions/cache@v1
17+ with :
18+ path : ~/.npm
19+ key : ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
20+ restore-keys : |
21+ ${{ runner.os }}-node-
22+ - name : Use Node.js 13.11.0
23+ uses : actions/setup-node@v1
24+ with :
25+ node-version : 13.11.0
26+ - name : Install dependencies
27+ run : npm i
28+ - name : Build Docs
29+ run : npm run build:docs:reference
30+ - name : Commit & Push Docs Data
31+ run : |
32+ git config --local user.email "actions@github.com"
33+ git config --local user.name "Actions Auto Build"
34+ git add -f docs/_data/reference.json
35+ git commit -m "docs: compile reference.json" || true
36+ git push --force origin HEAD:refs/heads/docs
0 commit comments