diff --git a/.github/workflows/website-deploy.yml b/.github/workflows/website-deploy.yml index cd18a3e766..20eea4288a 100644 --- a/.github/workflows/website-deploy.yml +++ b/.github/workflows/website-deploy.yml @@ -5,7 +5,7 @@ on: branches: - main paths: - - "apps/web-roo-code/**" + - 'apps/web-roo-code/**' workflow_dispatch: env: @@ -21,11 +21,11 @@ jobs: - name: Check if VERCEL_TOKEN exists id: check run: | - if [ -n "${{ secrets.VERCEL_TOKEN }}" ]; then - echo "has-vercel-token=true" >> $GITHUB_OUTPUT - else - echo "has-vercel-token=false" >> $GITHUB_OUTPUT - fi + if [ -n "${{ secrets.VERCEL_TOKEN }}" ]; then + echo "has-vercel-token=true" >> $GITHUB_OUTPUT + else + echo "has-vercel-token=false" >> $GITHUB_OUTPUT + fi deploy: runs-on: ubuntu-latest @@ -36,11 +36,6 @@ jobs: uses: actions/checkout@v4 - name: Setup Node.js and pnpm uses: ./.github/actions/setup-node-pnpm - - name: Migrate evals database - run: pnpm db:migrate:production - working-directory: packages/evals - env: - DATABASE_URL: ${{ secrets.EVALS_DATABASE_URL }} - name: Install Vercel CLI run: npm install --global vercel@canary - name: Pull Vercel Environment Information diff --git a/packages/evals/package.json b/packages/evals/package.json index a918a2a586..83690a99c4 100644 --- a/packages/evals/package.json +++ b/packages/evals/package.json @@ -15,8 +15,9 @@ "drizzle-kit:production": "dotenvx run -f .env.production -- tsx node_modules/drizzle-kit/bin.cjs", "db:generate": "pnpm drizzle-kit generate", "db:migrate": "pnpm drizzle-kit migrate", - "db:migrate:production": "pnpm drizzle-kit:production migrate", - "db:push:test": "pnpm drizzle-kit:test push", + "db:push": "pnpm drizzle-kit push", + "db:test:push": "pnpm drizzle-kit:test push", + "db:production:push": "pnpm drizzle-kit:production push", "db:up": "dotenvx run -f .env.development .env.local -- docker compose up -d db", "db:down": "dotenvx run -f .env.development .env.local -- docker compose down db", "redis:up": "dotenvx run -f .env.development .env.local -- docker compose up -d redis", diff --git a/packages/evals/src/db/migrations/0001_add_timeout_to_runs.sql b/packages/evals/src/db/migrations/0001_add_timeout_to_runs.sql new file mode 100644 index 0000000000..16d3cc1bdd --- /dev/null +++ b/packages/evals/src/db/migrations/0001_add_timeout_to_runs.sql @@ -0,0 +1 @@ +ALTER TABLE "runs" ADD COLUMN "timeout" integer DEFAULT 5 NOT NULL; \ No newline at end of file