diff --git a/.github/workflows/ci-build-bot.yml b/.github/workflows/ci-build-bot.yml index db67cfb92..0ec9cfc0b 100644 --- a/.github/workflows/ci-build-bot.yml +++ b/.github/workflows/ci-build-bot.yml @@ -12,26 +12,17 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Use node - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: 'npm' - - - name: Install Yarn - run: npm install --location=global yarn + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v1 - name: Install dependencies - run: yarn + run: bun install - name: Build Prisma - run: yarn prisma generate + run: bun prisma generate - name: Build - run: yarn build:bot --production + run: bun build:bot --production - name: Archive build uses: actions/upload-artifact@v4 diff --git a/package.json b/package.json index 3918f9a48..8ae6c5967 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "build:averages": "bun scripts/averages", "build:db": "prisma generate", - "build:bot": "vite-node --script scripts/build --production", + "build:bot": "bun scripts/build.ts --production", "build:website": "yarn build:db && yarn build:sitemap && next build", "build:sitemap": "vite-node --script scripts/sitemap", "build:docs": "vitepress build docs",