Skip to content

Update All dependencies #1109

Update All dependencies

Update All dependencies #1109

Workflow file for this run

name: Deploy to Github Pages
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
# Allow one concurrent deployment
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
# Build job
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
if: ${{ github.ref == 'refs/heads/main' }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn install --immutable
- name: Type checking
run: yarn check
- name: Check code style
run: |
yarn run fmt
git --no-pager diff --exit-code
- name: CI tests
run: yarn test
- name: Build
run: yarn vite build
- name: Postbuild
run: yarn run postbuild
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
path: build
# Deployment job
deploy:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
actions: read # to download an artifact uploaded by `actions/upload-pages-artifact@v3`
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4