From ac39233e1fe23a10914c4b3d864c74fd9e390cae Mon Sep 17 00:00:00 2001 From: to Date: Mon, 25 Dec 2023 06:18:31 +0000 Subject: [PATCH] noteam-vercel-fix --- .gitea/workflows/main.yml | 65 +++++++++++++++------------------------ 1 file changed, 24 insertions(+), 41 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index c2fb46dd..6667cbb3 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -1,41 +1,24 @@ -name: 'deploy' -on: - push: - branches: - - main - - feature/sse-connect - -jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: '18' - - - name: Install dependencies - run: npm install - - - name: Run tests - run: npm run check - - deploy: - runs-on: ubuntu-latest - needs: test - steps: - - name: Cloning repo - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Install Vercel CLI - run: npm install -g vercel && vercel --version - - - name: Deploy to Vercel - run: vercel --prod --scope=VERCEL_PROJECT_ID - env: - VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} +name: 'deploy' +on: + push: + branches: + - main + - feature/sse-connect + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm run check