Skip to content

Commit

Permalink
use bun to build front
Browse files Browse the repository at this point in the history
  • Loading branch information
soof-golan committed Oct 10, 2024
1 parent 4274ffa commit f1716f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/publish_website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,26 @@ jobs:
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}

- name: Setup Node.js
uses: actions/setup-node@v3
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
node-version: '16.x'
cache: 'yarn'
cache-dependency-path: website/yarn.lock
bun-version: latest

- name: Migrate production database with prisma
run: bash scripts/migrate.sh
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}

- name: Install Node.js dependencies
run: yarn install --frozen-lockfile
run: bun install
working-directory: website

- name: Generate Prisma Client
# Working directory is "./" on purpose!
run: npx prisma generate
run: bunx prisma generate

- name: Build
run: yarn build
run: bun run build
working-directory: website
env:
NODE_ENV: production
Expand Down
Binary file added bun.lockb
Binary file not shown.
Binary file added website/bun.lockb
Binary file not shown.

0 comments on commit f1716f3

Please sign in to comment.