We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 532bc78 commit 89d2988Copy full SHA for 89d2988
1 file changed
.github/workflows/pipeline.yml
@@ -4,6 +4,10 @@ on:
4
push:
5
branches:
6
- main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+ types: [opened, synchronize]
11
12
jobs:
13
deploy:
@@ -25,3 +29,13 @@ jobs:
25
29
26
30
- name: Tests
27
31
run: npm run coverage
32
+
33
+ - name: Deploy to Vercel
34
+ if: github.ref == 'refs/heads/main'
35
+ run: |
36
+ npm install -g vercel
37
+ vercel --token=$VERCEL_TOKEN --prod --confirm --org $VERCEL_ORG_ID --project $VERCEL_PROJECT_ID
38
+ env:
39
+ VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
40
+ VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
41
+ VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
0 commit comments