fix: add null check for schema type on request (#2233) #359
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Scalar examples | |
on: | |
push: | |
branches: | |
- 'main' | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Deploy Scalar examples | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install netlify | |
run: pnpm install -g netlify | |
- name: Generate Run UUID | |
run: echo "DEPLOY_ID=$(uuidgen)" >> "$GITHUB_ENV" && echo $DEPLOY_ID | |
- name: Install dependencies | |
run: pnpm --filter web install | |
- name: Turborepo cache | |
uses: actions/cache@v4 | |
with: | |
path: .turbo | |
key: ${{ runner.os }}-turbo-node-${{ matrix.node-version }} | |
restore-keys: | | |
${{ runner.os }}-turbo-node- | |
- name: Build | |
run: cd examples/web && pnpm turbo run build | |
env: | |
DEPLOY_ID: ${{ env.DEPLOY_ID }} | |
- name: Deploy to netlify | |
run: | | |
netlify deploy --dir "./examples/web/dist" \ | |
--message "Deployed from Github - ${{ env.DEPLOY_ID }}" \ | |
--site ${{ vars.NETLIFY_SITE_ID_PREVIEW }} \ | |
--auth ${{ secrets.NETLIFY_AUTH_TOKEN }} \ | |
--filter @scalar-examples/web --prod |