diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f1e3ab4..918a10c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,7 +16,7 @@ permissions: jobs: lint: name: ๐Ÿงถ ESLint - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: ๐Ÿ‘€ Checkout repo uses: actions/checkout@v4 @@ -33,11 +33,11 @@ jobs: run_install: true - name: ๐Ÿงถ Lint - run: pnpm run lint + run: pnpm lint typecheck: name: ๐Ÿ”ฌ TypeScript - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: ๐Ÿ‘€ Checkout repo uses: actions/checkout@v4 @@ -54,7 +54,7 @@ jobs: run_install: true - name: ๐Ÿ”ฌ Type check - run: pnpm run typecheck + run: pnpm typecheck vitest: name: โšก Vitest @@ -79,7 +79,7 @@ jobs: migration: name: ๐Ÿงฌ Migration - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: [lint, typecheck, vitest] if: ${{ github.ref_name == 'main' || github.ref_name == 'dev'}} @@ -100,21 +100,21 @@ jobs: - name: ๐Ÿงฌ Staging Migration if: ${{ github.ref_name == 'dev'}} - run: pnpm run db:migrate + run: pnpm db:migrate env: TURSO_DB_URL: ${{ secrets.STAGING_TURSO_DB_URL }} TURSO_DB_AUTH_TOKEN: ${{ secrets.STAGING_TURSO_DB_AUTH_TOKEN }} - name: ๐Ÿงฌ Production Migration if: ${{ github.ref_name == 'main'}} - run: pnpm run db:migrate + run: pnpm db:migrate env: TURSO_DB_URL: ${{ secrets.TURSO_DB_URL }} TURSO_DB_AUTH_TOKEN: ${{ secrets.TURSO_DB_AUTH_TOKEN }} deploy: name: ๐Ÿš€ Deploy - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: [lint, typecheck, vitest, migration] if: ${{ github.ref_name == 'main' || github.ref_name == 'dev'}}