Skip to content

Commit

Permalink
setup bun
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Nov 20, 2024
1 parent 73229cd commit da6fa06
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/desktop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.

- name: install frontend dependencies
run: npm install # change this to npm, pnpm or bun depending on which one you use.
run: bun install # change this to npm, pnpm or bun depending on which one you use.
working-directory: ./desktop

- uses: tauri-apps/tauri-action@v0
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3

- uses: oven-sh/setup-bun@v2
with:
node-version: 18
cache: "npm"
cache-dependency-path: "./web/package-lock.json"
bun-version: latest

- name: Install dependencies
run: npm install
run: bun install

- name: Build
run: npm run build
run: bun run build

- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
Expand Down
4 changes: 2 additions & 2 deletions desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"identifier": "github.com.mobslide",
"version": "1.0.3",
"build": {
"beforeDevCommand": "npm run dev",
"beforeBuildCommand": "npm run build",
"beforeDevCommand": "bun run dev",
"beforeBuildCommand": "bun run build",
"frontendDist": "../dist",
"devUrl": "http://localhost:1420"
},
Expand Down

0 comments on commit da6fa06

Please sign in to comment.