Skip to content

chore: πŸš€ release (#16) #28

chore: πŸš€ release (#16)

chore: πŸš€ release (#16) #28

Workflow file for this run

name: GitHub Actions Vercel Production Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches:
- main
jobs:
deploy-production:
runs-on: ubuntu-latest
steps:
- name: 🧺 checkout
uses: actions/checkout@v3
- name: 🐱 use .nvmrc
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: πŸ“Œ npm install
run: npm ci --prefer-offline --no-audit
- name: πŸ”§ build
run: npm run build
- name: 〽️ pull vercel environment information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: πŸ”§ build project artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: πŸ• deploy project artifacts to vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}