mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-09-19 09:40:14 +00:00
fix: update build workflow to use Node.js and pnpm, and upgrade react-router-dom version
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user