Skip to content

feat: add ci

feat: add ci #1

Workflow file for this run

name: CI
permissions:
contents:
read: all

Check failure on line 5 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 5, Col: 5): A mapping was not expected .github/workflows/ci.yml (Line: 6, Col: 3): Unexpected value 'pull_requests'
pull_requests:
read: all
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up pnpm
uses: pnpm/action-setup@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build Docusaurus
run: pnpm docusaurus build