Skip to content

Commit 1b940b5

Browse files
committed
fix(ci): use bun for wrangler deploy and drop stale package-lock.json
The wrangler-action auto-detected the committed package-lock.json and ran npm, which failed on an eslint peer-dep conflict. Remove the stale lockfile, gitignore non-bun lockfiles, add wrangler as a dev dependency so the action reuses the local install, and pin packageManager: bun.
1 parent b93a52c commit 1b940b5

5 files changed

Lines changed: 9 additions & 13577 deletions

File tree

.github/workflows/deploy-cloudflare.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
- name: Deploy to Cloudflare Pages
7878
uses: cloudflare/wrangler-action@v4
7979
with:
80+
packageManager: bun
8081
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
8182
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
8283
command: pages deploy dist --project-name=torena-sim --branch=main

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,8 @@ public/data/sets/
4848
public/data/*.*.json
4949
.pi/context-folders.json
5050
src/lib/uma-sim-wasm/pkg/
51+
52+
# Use bun.lock; npm/yarn/pnpm lockfiles are not used
53+
package-lock.json
54+
yarn.lock
55+
pnpm-lock.yaml

bun.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)