Skip to content

Only treat warnings as errors for CI builds (#798) #187

Only treat warnings as errors for CI builds (#798)

Only treat warnings as errors for CI builds (#798) #187

Workflow file for this run

name: GitHub Pages
on:
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
# Default to bash
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
registry-url: https://registry.npmjs.org
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn workspace @foxglove/test-client-web-app lint:ci
- run: yarn workspace @foxglove/test-client-web-app build
- name: Upload pages artifact
if: github.event_name == 'push'
uses: actions/upload-pages-artifact@v3
with:
path: test-client-web-app/dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4