From 01af4d457a63e051296ef77ee8b598ba07b48232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sun, 23 Jun 2024 20:05:21 -0500 Subject: [PATCH] feat: upgrade build bot --- .github/workflows/ci-build-bot.yml | 19 +++++-------------- package.json | 2 +- 2 files changed, 6 insertions(+), 15 deletions(-) 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",