diff --git a/.github/workflows/cd-host.yml b/.github/workflows/cd-host.yml index 063c3f14c..1c99b2938 100644 --- a/.github/workflows/cd-host.yml +++ b/.github/workflows/cd-host.yml @@ -18,10 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - - name: Use node - uses: actions/setup-node@v4 - with: - node-version: 18 + - uses: oven-sh/setup-bun@v1 - name: Download release assets run: | @@ -30,7 +27,7 @@ jobs: | cut -d : -f 2,3 \ | tr -d \") curl -L -o bot.zip $DOWNLOAD_URL - unzip bot.zip + unzip bot.zip -d dist/bot - name: Run bot - run: NODE_ENV=production GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} node --enable-source-maps index.cjs + run: NODE_ENV=production GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} bun start:bot diff --git a/.github/workflows/ci-build-bot.yml b/.github/workflows/ci-build-bot.yml index 0ec9cfc0b..6994a9a82 100644 --- a/.github/workflows/ci-build-bot.yml +++ b/.github/workflows/ci-build-bot.yml @@ -22,7 +22,7 @@ jobs: run: bun prisma generate - name: Build - run: bun build:bot --production + run: bun build:bot - name: Archive build uses: actions/upload-artifact@v4 diff --git a/bun.lockb b/bun.lockb index 8bc474e6b..5ab6ea510 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index c5d2d39a7..9c4799ed0 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "build:sitemap": "bun scripts/sitemap.ts", "build:docs": "vitepress build docs", "build:ratingleaderboard": "bun --script scripts/buildRatingLeaderboard.ts", - "dev:bot": "vite-node --script scripts/build && yarn start:bot", + "dev:bot": "bun build:bot && bun start:bot", "dev:docs": "vitepress dev docs", "dev:website": "next dev", "start:bot": "bun dist/bot/index.js", @@ -75,7 +75,6 @@ "sharp": "^0.33.4", "three": "0.159.0", "three-stdlib": "^2.30.4", - "vite-node": "^0.34.7", "vitepress": "^1.3.0", "vitepress-plugin-auto-sidebar": "^1.2.0", "yaml": "^2.4.5",