Skip to content

Fix dependency

Fix dependency #3

Workflow file for this run

name: CI
on:
pull_request:
branches: ["**"]
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: node
uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"
- name: install dependencies
run: npm ci
- name: eslint
run: npm run lint
build:
name: "build"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: node
uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"
- name: install dependencies
run: npm ci
- name: check TypeScript
run: npm run typecheck
- name: build
run: npm run build
- name: upload Build Artifact
uses: actions/upload-pages-artifact@v3
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
name: docusaurus-build
path: ./build
retention-days: 1
deploy:
name: "deploy"
needs: [lint, build]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: deploy production
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: docusaurus-build