Skip to content

fix github ci

fix github ci #62

Workflow file for this run

# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Link Check
on:
# Runs on pushes targeting the default branch
pull_request:
branches: ['main']
jobs:
# Build job
LintCheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
run: npm i -g corepack@latest
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install
- name: ESLint Check
run: pnpm eslint .
- name: ZHLint Check
run: pnpm zhlint "./src/content/blog/*.md"
- name: Type Check
run: pnpm astro check