chore: 设计提示词任务。 #970
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| env: | |
| # https://turborepo.com/docs/crafting-your-repository/constructing-ci#enabling-remote-caching | |
| # https://vercel.com/docs/monorepos/remote-caching#use-remote-caching-from-external-ci/cd | |
| TURBO_TOKEN: ${{ secrets.vercel_token }} | |
| TURBO_TEAM: "ruancat-projects" | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| jobs: | |
| tester: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 检出分支 | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: 安装pnpm | |
| uses: pnpm/action-setup@v5 | |
| with: | |
| run_install: | | |
| - recursive: true | |
| - args: [--global, "vercel", "@dotenvx/dotenvx", "tsx", "turbo"] | |
| - name: 安装node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24.18.0 | |
| cache: pnpm | |
| - name: 检查版本 | |
| run: | | |
| node -v | |
| pnpm -v | |
| vc -v | |
| turbo --version | |
| - name: pnpm全局检查依赖包 | |
| run: pnpm ls -g | |
| - name: turbo login 远程登录 | |
| run: turbo login --token=${{env.TURBO_TOKEN}} --team=${{env.TURBO_TEAM}} | |
| - name: turbo link 链接远程项目 | |
| run: turbo link --token=${{env.TURBO_TOKEN}} --scope=${{env.TURBO_TEAM}} --yes | |
| - name: turbo并发打包全部子项目 | |
| run: pnpm run ci |