Skip to content

Upgrade TypeScript, webpack and Github CI #211

Upgrade TypeScript, webpack and Github CI

Upgrade TypeScript, webpack and Github CI #211

Workflow file for this run

name: Build and deploy
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Install
run: yarn install
- name: Lint
run: yarn run lint-test
- name: Build query-graphs
run: yarn run --cwd=query-graphs build
- name: Build standalone-app
run: yarn run --cwd=standalone-app build
- name: Deploy
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./standalone-app/dist/