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:
parent
2fefd45b2f
commit
86a1aadfda
14
.github/workflows/frontend-cicd.yml
generated
vendored
14
.github/workflows/frontend-cicd.yml
generated
vendored
@ -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
1960
frontend/bun.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
14460
frontend/package-lock.json
generated
14460
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user