Refactor CI workflow to use Bun instead of Node.js for dependency management and build process; add bun.lock file and remove package-lock.json. (#8277)

This commit is contained in:
Bram Suurd 2025-10-11 17:28:07 +02:00 committed by GitHub
parent 2fefd45b2f
commit 86a1aadfda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1966 additions and 14468 deletions

14
.github/workflows/frontend-cicd.yml generated vendored
View File

@ -97,7 +97,7 @@ jobs:
success = test_json_files()
sys.exit(0 if success else 1)
EOF
build:
if: github.repository == 'community-scripts/ProxmoxVE'
needs: test-json-files
@ -109,15 +109,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
node-version: "20"
cache: npm
cache-dependency-path: frontend/package-lock.json
bun-version: latest
- name: Install dependencies
run: npm ci --prefer-offline --legacy-peer-deps
run: bun install --frozen-lockfile
- name: Configure Next.js for pages
uses: actions/configure-pages@v5
@ -125,7 +123,7 @@ jobs:
static_site_generator: next
- name: Build with Next.js
run: npm run build
run: bun run build
- name: Upload artifact
if: github.ref == 'refs/heads/main'

1960
frontend/bun.lock generated Normal file

File diff suppressed because it is too large Load Diff

14460
frontend/package-lock.json generated

File diff suppressed because it is too large Load Diff