File tree Expand file tree Collapse file tree 4 files changed +47
-36
lines changed Expand file tree Collapse file tree 4 files changed +47
-36
lines changed Original file line number Diff line number Diff line change @@ -2,31 +2,34 @@ name: Deploy to GitHub Pages
22
33on :
44 push :
5- branches :
6- - main
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
78
89jobs :
9- deploy :
10+ build-and- deploy :
1011 runs-on : ubuntu-latest
1112
1213 steps :
13- - name : Checkout code
14+ - name : Checkout
1415 uses : actions/checkout@v3
1516
1617 - name : Setup Node.js
1718 uses : actions/setup-node@v3
1819 with :
19- node-version : 18
20+ node-version : " 18"
21+ cache : " npm"
2022
21- - name : Install dependencies
22- run : npm ci
23+ - name : Clean install
24+ run : |
25+ rm -rf node_modules package-lock.json
26+ npm install
2327
2428 - name : Build
2529 run : npm run build
2630
2731 - name : Deploy to GitHub Pages
28- uses : peaceiris/actions-gh-pages@v4
32+ uses : peaceiris/actions-gh-pages@v3
2933 with :
3034 github_token : ${{ secrets.GITHUB_TOKEN }}
3135 publish_dir : ./dist
32- publish_branch : gh-pages
You can’t perform that action at this time.
0 commit comments