name: ci on: [pull_request, push, workflow_dispatch] jobs: build: runs-on: ubuntu-22.04 steps: - name: 拉取仓库 uses: actions/checkout@v4 - name: 设置yarn镜像 run : yarn config set registry https://registry.npmmirror.com - name: 获取依赖 run: yarn - name: 编译 run: yarn build-only - name: 上传编译后产物 uses: actions/upload-artifact@v3 with: name: main path: dist/