Skip to content

chore(deps): bump nanoid from 3.3.7 to 3.3.8 in /frontend (#4911) #1468

chore(deps): bump nanoid from 3.3.7 to 3.3.8 in /frontend (#4911)

chore(deps): bump nanoid from 3.3.7 to 3.3.8 in /frontend (#4911) #1468

name: Frontend Deploy to Production
on:
push:
branches:
- main
paths:
- frontend/**
- .github/**
defaults:
run:
working-directory: frontend
jobs:
run-tests:
runs-on: ubuntu-latest
name: Run E2E Tests
environment: production
concurrency:
group: e2e-tests-prod
cancel-in-progress: true
steps:
- name: Cloning repo
uses: actions/checkout@v4
- name: Run E2E tests against production
uses: ./.github/actions/e2e-tests
with:
e2e_test_token: ${{ secrets.E2E_TEST_TOKEN }}
slack_token: ${{ secrets.SLACK_TOKEN }}
environment: prod
deploy-production:
runs-on: ubuntu-latest
name: Deploy to Vercel Production
environment: production
needs: run-tests
steps:
- name: Cloning repo
uses: actions/checkout@v4
- name: Setup Node.js 16.x
uses: actions/setup-node@v4
with:
node-version: 16.x
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Deploy to Vercel
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
ENV: prod
run: |
npm ci --only=prod
npm run env
npm run bundle
echo ${{ github.sha }} > CI_COMMIT_SHA
vercel --prod --token ${{ secrets.VERCEL_TOKEN }}
deploy-demo:
runs-on: ubuntu-latest
name: Deploy to Vercel Demo
environment: demo
needs: run-tests
steps:
- name: Cloning repo
uses: actions/checkout@v4
- name: Setup Node.js 16.x
uses: actions/setup-node@v4
with:
node-version: 16.x
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Deploy to Vercel
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
ENV: prod
run: |
npm ci --only=prod
npm run env
npm run bundle
echo ${{ github.sha }} > CI_COMMIT_SHA
npm install --global [email protected]
vercel --prod --token ${{ secrets.VERCEL_TOKEN }}