Skip to content

Commit 361b9c8

Browse files
committed
Fixes
1 parent 87952e9 commit 361b9c8

File tree

4 files changed

+47
-36
lines changed

4 files changed

+47
-36
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,34 @@ name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches:
6-
- main
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
78

89
jobs:
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

0 commit comments

Comments
 (0)