Skip to content

Npm audit (#310)

Npm audit (#310) #347

Workflow file for this run

name: Staging deployment
on:
push:
branches:
- '*'
tags:
- '!v*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Begin CI...
uses: actions/checkout@v2
- name: Use NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Use cached node_modules
uses: actions/cache@v1
with:
path: node_modules
key: nodeModules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
nodeModules-
- name: Install dependencies
run: npm ci
env:
CI: true
- name: Type check
run: npm run typecheck
env:
CI: true
# - name: Lint
# run: npm run lint
# env:
# CI: true
# - name: Test
# run: npm run test
# env:
# CI: true
- name: Build
run: npm run build
env:
CI: true
- name: Deploy to Vercel staging
run: |
VERCEL_ORG_ID=${{ secrets.VERCEL_ORG_ID }} \
VERCEL_PROJECT_ID=${{ secrets.VERCEL_PROJECT_ID }} \
npx vercel \
--local-config vercel.json \
--token ${{ secrets.VERCEL_TOKEN }}