Skip to content

Commit 780af98

Browse files
committed
update build
1 parent fb1a3cd commit 780af98

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
# https://docusaurus.io/docs/deployment
21
name: Deploy to GitHub Pages
32

43
on:
54
push:
65
branches:
76
- main
8-
# Review gh actions docs if you want to further define triggers, paths, etc
9-
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
7+
pull_request:
8+
branches:
9+
- '*'
1010

1111
jobs:
1212
build:
1313
name: Build Docusaurus
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
with:
1818
fetch-depth: 0
19-
- uses: actions/setup-node@v4
19+
- uses: actions/setup-node@v6
2020
with:
21-
node-version: 20
21+
node-version: 24
2222
cache: npm
2323

2424
- name: Install dependencies
@@ -34,6 +34,7 @@ jobs:
3434
deploy:
3535
name: Deploy to GitHub Pages
3636
needs: build
37+
if: ${{ github.event_name == 'push' }}
3738

3839
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
3940
permissions:

.github/workflows/test-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
name: Test deployment
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616
with:
1717
fetch-depth: 0
18-
- uses: actions/setup-node@v4
18+
- uses: actions/setup-node@v6
1919
with:
20-
node-version: 20
20+
node-version: 24
2121
cache: npm
2222

2323
- name: Install dependencies

0 commit comments

Comments
 (0)