Skip to content

github credits page #1052

github credits page

github credits page #1052

Workflow file for this run

name: Surge PR Preview
on:
pull_request_target:
paths:
- 'web/**'
jobs:
verify:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./web
steps:
- uses: actions/checkout@v2
with:
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- name: Use Node.js 18
uses: actions/[email protected]
with:
node-version: 18
cache: 'npm'
cache-dependency-path: web/package-lock.json
- name: Install
run: npm ci --prefer-offline --no-audit
- name: Lint
run: |
npm run lint:ci
npm run typecheck
preview:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./web
steps:
- uses: actions/checkout@v2
with:
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- name: Use Node.js 18
uses: actions/[email protected]
with:
node-version: 18
cache: 'npm'
cache-dependency-path: web/package-lock.json
- name: Install
run: npm ci --prefer-offline --no-audit
- name: Prefetch
run: npm run prefetch
- name: Build 🏗️
env:
SENTRY_DSN: https://[email protected]/6588620
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
GIFT_APP_API_BASE: us-west-2.staging.shared.aws.tidbcloud.com
GIFT_TIDBCLOUD_BASE_URL: https://staging.tidbcloud.com
OSSINSIGHT_PREVIEW: true
TIDBCLOUD_HOST: staging.tidbcloud.com
run: npm run build
- name: Deploy to ossinsight.surge.sh 🚀
uses: afc163/surge-preview@v1
id: preview_step
with:
surge_token: ${{ secrets.SURGE_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
teardown: true
build: echo 'Deployed to surge'
dist: './web/build'