generated from przeprogramowani/frontend-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 846 Bytes
/
pull_request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Pull req prebuild - vercel!
on:
pull_request:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: 'Preview'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure node
uses: ./.github/actions/setup-project
- name: Lint code
run: npm run lint
- name: Test code
run: npm run test
- name: Build the app
run: npm run build
env:
VITE_ENVIRONMENT: 'Preview'
- name: Deploy app to Vercel preview env
uses: ./.github/actions/deploy-vercel
with:
mode: 'preview'
vercel-token: ${{ secrets.VERCEL_TOKEN }}
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}