version name #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |