Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/CI-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build with Bun

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
echo "$HOME/.bun/bin" >> $GITHUB_PATH

- name: Install dependencies
run: bun install

- name: Build
run: bun run build

- name: Upload client artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: client-app
path: packages/client/dist

- name: Upload server artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: server-app
path: packages/server/dist
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "bun run index.ts",
"dev": "bun --watch index.ts",
"build": "bun build index.ts --outdir dist --target node && cp prompts/WonderWorld.md dist/prompts/WonderWorld.md",
"build": "bun build index.ts --outdir dist --target node && mkdir -p dist/prompts && cp prompts/WonderWorld.md dist/prompts/WonderWorld.md",
"dist": "bun run ./dist/index.js"
},
"devDependencies": {
Expand Down