fix: update build workflow to use Node.js and pnpm, and upgrade react-router-dom version

This commit is contained in:
hamster1963
2026-06-04 10:24:16 +08:00
parent ad0682bbf1
commit c8b7dcc8a8
3 changed files with 40 additions and 33 deletions
+12 -6
View File
@@ -16,17 +16,23 @@ jobs:
with:
fetch-depth: 0
- name: Set up Bun
uses: oven-sh/setup-bun@v1
- name: Set up Node.js
uses: actions/setup-node@v4
with:
bun-version: "latest"
node-version: "22"
cache: "pnpm"
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: "11"
- name: Install dependencies
run: bun install
run: pnpm install --frozen-lockfile
- name: Build static export
run: |
bun run build
pnpm run build
- name: Compress dist folder
run: zip -r dist.zip dist
@@ -38,6 +44,6 @@ jobs:
files: dist.zip
- name: Changelog
run: bun x changelogithub
run: pnpm dlx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}