blog/.gitea/workflows/frontend-ci.yaml
SquidSpirit cefdc94e03
Some checks failed
PR Title Check / pr-title-check (pull_request) Successful in 17s
Frontend CI / build (push) Failing after 53s
BLOG-58 fix: workflow node version
2025-07-23 05:23:29 +08:00

36 lines
669 B
YAML

name: Frontend CI
on: [push]
defaults:
run:
working-directory: ./frontend
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
run_install: false
- name: Install node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install
- name: ESLint
run: pnpm run lint
- name: Build
run: pnpm run build