Skip to content

Shorten some FAQ answers #167

Shorten some FAQ answers

Shorten some FAQ answers #167

name: Test and Deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
deploy:
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Deploy to Vercel
run: |
curl -X POST https://api.vercel.com/v1/integrations/deploy/prj_${{ secrets.PROJECT_ID }} \
-H "Authorization: Bearer ${{ secrets.VERCEL_TOKEN }}"