fix: 移除 container 字段和 paths 过滤器,恢复 setup-go/setup-node 以兼容 Gitea Actions

This commit is contained in:
hhs
2026-06-13 10:39:20 +08:00
parent ebbe33aeed
commit 324b3c9f8a
2 changed files with 14 additions and 10 deletions

View File

@@ -3,23 +3,26 @@ name: Frontend CI
on:
push:
branches: [main]
paths: [frontend/**]
pull_request:
branches: [main]
paths: [frontend/**]
jobs:
ci:
runs-on: aliyun
container: node:22-bookworm
env:
npm_config_registry: https://registry.npmmirror.com
defaults:
run:
working-directory: frontend
steps:
- uses: http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: frontend/package-lock.json
env:
npm_config_registry: https://registry.npmmirror.com
- name: Install dependencies
run: npm ci