Skip to content

Commit

Permalink
bun
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Apr 17, 2024
1 parent e799701 commit 2861ddb
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 4,091 deletions.
35 changes: 0 additions & 35 deletions .github/actions/setup-pnpm/action.yaml

This file was deleted.

14 changes: 4 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Deploy to Pages

on:
push:
branches: ["master"]
workflow_dispatch:

permissions:
Expand All @@ -22,13 +21,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
- uses: oven-sh/setup-bun@v1
- name: Setup Pages
uses: actions/configure-pages@v4
with:
Expand All @@ -44,9 +37,9 @@ jobs:
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
- name: Install dependencies
run: pnpm install
run: bun install
- name: Build with Next.js
run: pnpm run build
run: bun run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand All @@ -57,6 +50,7 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
needs: build
steps:
- name: Deploy to GitHub Pages
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 9
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-pnpm
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1

- run: pnpm install
- run: pnpm lint
- run: pnpm test
- run: bun install
- run: bun lint
- run: bun test
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ This tool allows you to flash AGNOS onto your comma device. Uses a fork of [fast
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

```bash
pnpm install
pnpm dev
bun install
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
Expand Down
Binary file added bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint",
"test": "vitest"
},
"packageManager": "pnpm@8.10.3",
"packageManager": "bun",
"engines": {
"node": ">=18.0.0"
},
Expand Down
Loading

0 comments on commit 2861ddb

Please sign in to comment.