i have github action that look like this
name: CI
on: pull_request: branches: ["*"] merge_group:concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
# You can leverage Vercel Remote Caching with Turbo to speed up your builds# @link https://turborepo.org/docs/core-concepts/remote-caching#remote-caching-on-vercel-buildsenv: FORCE_COLOR: 3 TURBO_TEAM: ${{ vars.TURBO_TEAM }} TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} AUTH_DESCOPE_MAIN_TENANT_ID: ${{ secrets.AUTH_DESCOPE_MAIN_TENANT_ID }} NEXT_PUBLIC_AUTH_DESCOPE_ID: ${{ secrets.NEXT_PUBLIC_AUTH_DESCOPE_ID }} AUTH_DESCOPE_MGT_KEY: ${{ secrets.AUTH_DESCOPE_MGT_KEY }} AUTH_DESCOPE_ISSUER: ${{ secrets.AUTH_DESCOPE_ISSUER }} AUTH_DESCOPE_SECRET: ${{ secrets.AUTH_DESCOPE_SECRET }} NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }} AUTH_SECRET: ${{ secrets.AUTH_SECRET }} KV_URL: ${{ secrets.KV_URL }} KV_REST_API_URL: ${{ secrets.KV_REST_API_URL }} KV_REST_API_TOKEN: ${{ secrets.KV_REST_API_TOKEN }} KV_REST_API_READ_ONLY_TOKEN: ${{ secrets.KV_REST_API_READ_ONLY_TOKEN }} BLOB_STORAGE_URL: ${{ secrets.BLOB_STORAGE_URL }} BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }} POSTGRES_URL: ${{ secrets.POSTGRES_URL }} VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} # REGISTRY: ghcr.io # IMAGE_NAME: ${{ github.repository }}jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4
- name: Setup uses: ./tooling/github/setup
- name: Copy env shell: bash run: cp .env.example .env
- name: Lint run: pnpm lint && pnpm lint:ws
format: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4
- name: Setup uses: ./tooling/github/setup
- name: Format run: pnpm format
typecheck: runs-on: ubuntu-latest needs: [lint, format] steps: - uses: actions/checkout@v4
- name: Setup uses: ./tooling/github/setup
- name: Typecheck run: pnpm typecheck deploy-Preview: runs-on: ubuntu-latest needs: [lint, format, typecheck] steps: - uses: actions/checkout@v2 - name: Install Vercel CLI run: npm install --global vercel@latest - name: Pull Vercel Environment Information run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - name: Build Project Artifacts run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
now my issue that this runn the deployment before the flow of github action ends is there a way block this means github flow end success then do the acual deployment i dont understand what i missing here

have idea i may missed?