Skip to content

Commit 2249e42

Browse files
committed
Tweak deployment workflow
1 parent d94e51a commit 2249e42

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,6 @@ jobs:
5757
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
5858
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_HOST_PREVIEW_HOST_PROJECT_ID }}
5959

60-
- name: Deploy entrypoint to Vercel - STAGING
61-
uses: nick-fields/retry@v2
62-
with:
63-
command: |
64-
cd packages/entrypoint/dist
65-
vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
66-
vercel build --token=${{ secrets.VERCEL_TOKEN }} # creates vercel output directory
67-
68-
cp -R ./node_modules ./.vercel/output/static/ # force add node_modules to output directory
69-
70-
vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
71-
max_attempts: 3
72-
timeout_minutes: 10
73-
env:
74-
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
75-
VERCEL_PROJECT_ID:
76-
${{ secrets.VERCEL_ENTRYPOINT_PREVIEW_HOST_PROJECT_ID }}
77-
7860
# --- production deployments (only on main)
7961
- name: Deploy host to Vercel - PRODUCTION
8062
if: ${{ github.ref == 'refs/heads/main' }}
@@ -87,7 +69,7 @@ jobs:
8769
8870
cp -R ./node_modules ./.vercel/output/static/ # force add node_modules to output directory
8971
90-
vercel deploy --prebuilt --production --token=${{ secrets.VERCEL_TOKEN }}
72+
vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
9173
max_attempts: 3
9274
timeout_minutes: 10
9375
env:
@@ -105,7 +87,7 @@ jobs:
10587
10688
cp -R ./node_modules ./.vercel/output/static/ # force add node_modules to output directory
10789
108-
vercel deploy --prebuilt --production --token=${{ secrets.VERCEL_TOKEN }}
90+
vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
10991
max_attempts: 3
11092
timeout_minutes: 10
11193
env:

0 commit comments

Comments
 (0)