Skip to content

Update dependencies and dev dependencies #129

Update dependencies and dev dependencies

Update dependencies and dev dependencies #129

Workflow file for this run

name: Build
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
name: Lint and tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 18
- 20
- latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm test
deploy:
name: Live viewer
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- name: Build Live Viewer
run: bash scripts/deploy-live-viewer.sh
- name: Push to gh-pages
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out