99 if : github.event_name != 'push'
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v1
13- - uses : actions/setup-node@v1
12+ - uses : actions/checkout@v3
13+ - uses : actions/setup-node@v3
1414 with :
15- node-version : ' 22.x'
15+ node-version : ' 20.x'
16+ cache : ' yarn'
17+ - name : Install dependencies
18+ run : yarn install --frozen-lockfile
1619 - name : Test Build
17- run : |
18- if [ -e yarn.lock ]; then
19- yarn install --frozen-lockfile
20- elif [ -e package-lock.json ]; then
21- npm ci
22- else
23- npm i
24- fi
25- npm run build
20+ run : yarn build
2621 gh-release :
2722 if : github.event_name != 'pull_request'
2823 runs-on : ubuntu-latest
2924 steps :
30- - uses : actions/checkout@v1
31- - uses : actions/setup-node@v1
25+ - uses : actions/checkout@v3
26+ - uses : actions/setup-node@v3
3227 with :
33- node-version : ' 22.x'
28+ node-version : ' 20.x'
29+ cache : ' yarn'
3430 - name : Add key to allow access to repository
3531 env :
3632 SSH_AUTH_SOCK : /tmp/ssh_agent.sock
@@ -44,18 +40,13 @@ jobs:
4440 HostName github.com
4541 IdentityFile ~/.ssh/id_rsa
4642 EOT
43+ - name : Install dependencies
44+ run : yarn install --frozen-lockfile
4745 - name : Release to GitHub Pages
4846 env :
4947 USE_SSH : true
5048 GIT_USER : git
5149 run : |
52- git config --global user.email "actions@gihub .com"
50+ git config --global user.email "actions@github .com"
5351 git config --global user.name "gh-actions"
54- if [ -e yarn.lock ]; then
55- yarn install --frozen-lockfile
56- elif [ -e package-lock.json ]; then
57- npm ci
58- else
59- npm i
60- fi
61- npx docusaurus deploy
52+ yarn docusaurus deploy
0 commit comments