Some checks failed
CI / ci (push) Has been cancelled
将 CI/Deploy 从本地脚本与中间复用层切换为公共 reusable-prepare-workspace 工作流,并规范 deploy 命令中的密钥注入方式,降低重复维护与调用兼容风险。 Made-with: Cursor
21 lines
454 B
YAML
21 lines
454 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
|
|
jobs:
|
|
ci:
|
|
uses: platform/workflow/.gitea/workflows/reusable-prepare-workspace.yml@1.1
|
|
with:
|
|
repo_url: "${{ github.server_url }}/${{ github.repository }}.git"
|
|
git_sha: "${{ github.sha }}"
|
|
node_major: "22"
|
|
yarn_version: "stable"
|
|
run_commands: |
|
|
set -euo pipefail
|
|
yarn install --frozen-lockfile
|
|
yarn lint
|
|
yarn tsc --noEmit
|