Skip to content

Commit 39dcf17

Browse files
committed
Pin webpack to 5.104.1 and improve website CI workflow
Pin webpack to 5.104.1 to fix website build failure caused by webpack 5.105+ removing the `name` option from ProgressPlugin, which Docusaurus still uses. Also add a step to merge PR head into the release branch so website CI tests the PR's actual changes.
1 parent 78397c8 commit 39dcf17

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/publish_website.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,13 @@ jobs:
4747
run: |
4848
git config --global user.name "github-actions[bot]"
4949
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
50-
git merge origin/main
50+
git merge origin/main --no-edit
5151
# To avoid a large number of commits we don't push this sync commit to github until a new release.
52+
- if: ${{ github.event_name == 'pull_request' }}
53+
name: Merge PR head into release branch
54+
run: |
55+
git fetch origin "refs/pull/${{ github.event.pull_request.number }}/head:pr-head"
56+
git merge pr-head --no-edit
5257
- name: Install uv
5358
uses: astral-sh/setup-uv@v7
5459
- name: Set up Python

website/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"react-dom": "^18.3.1",
2626
"react-plotly.js": "^2.5.1",
2727
"rehype-katex": "7",
28-
"remark-math": "6"
28+
"remark-math": "6",
29+
"webpack": "5.104.1"
30+
},
31+
"resolutions": {
32+
"webpack": "5.104.1"
2933
},
3034
"engines": {
3135
"node": ">=18.0"

0 commit comments

Comments
 (0)