diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 864ffdd8..720b2405 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,6 +1,6 @@ name: Build and Deploy packages/docs env: - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_DOCS_PROJECT_ID }} VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} on: @@ -54,18 +54,18 @@ jobs: - name: Install Vercel CLI run: npm install -g vercel@35 - name: Link Vercel project - run: vercel link --cwd packages/docs --yes --token ${{ secrets.VERCEL_TOKEN }} + run: vercel link --yes --token ${{ secrets.VERCEL_TOKEN }} # Preview deployment (for pull requests and non-main pushes) - name: Pull Vercel environment information (Preview) if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/main') - run: vercel pull --cwd packages/docs --yes --environment=preview --token ${{ secrets.VERCEL_TOKEN }} + run: vercel pull --yes --environment=preview --token ${{ secrets.VERCEL_TOKEN }} - name: Build project artifacts (Preview) if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/main') - run: vercel build --cwd packages/docs --token ${{ secrets.VERCEL_TOKEN }} + run: vercel build --token ${{ secrets.VERCEL_TOKEN }} - name: Deploy to Vercel (Preview) if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/main') - run: vercel deploy --cwd packages/docs --prebuilt --token ${{ secrets.VERCEL_TOKEN }} + run: vercel deploy --prebuilt --token ${{ secrets.VERCEL_TOKEN }} # Production deployment (for main branch pushes) - name: Pull Vercel environment information (Production)