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