diff --git a/.github/workflows/deploy_admin_production.yaml b/.github/workflows/deploy_admin_production.yaml index c393432..3984372 100644 --- a/.github/workflows/deploy_admin_production.yaml +++ b/.github/workflows/deploy_admin_production.yaml @@ -22,10 +22,10 @@ jobs: node-version: '20.x' - name: install vercel cli run: npm install -g vercel - - name: deploy to vercel as preview + - name: deploy to vercel as production run: | npm install cd ./packages/adminPage - vercel pull --yes --token=${{ secrets.VERCEL_TOKEN }} - vercel build --token=${{ secrets.VERCEL_TOKEN }} - vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} \ No newline at end of file + vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} + vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} + vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/deploy_production.yaml b/.github/workflows/deploy_production.yaml index 07b9609..8fa2421 100644 --- a/.github/workflows/deploy_production.yaml +++ b/.github/workflows/deploy_production.yaml @@ -24,6 +24,8 @@ jobs: run: npm install -g vercel - name: deploy to vercel as production run: | + npm install + cd ./packages/mainPage vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }} \ No newline at end of file