/
githubmirror
/
trpc
Обзор
Документация
Войти
/
githubmirror
/
trpc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/subtree.yml
75 строк
2 KB
renovate[bot]
chore(deps): update pnpm/action-setup action to v5 (#7260)
17 мар 2026, 16:46
Не верифицирован
17 мар 2026, 16:46
346868c
Код
Авторство
О чём код?
name: subtree-matrix on: workflow_dispatch: push: branches: - 'main' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: false # true causes the workflow to cancel and look failed on `main` (which is done after a release) jobs: sync-downstream: runs-on: ubuntu-latest strategy: fail-fast: false matrix: path: [ # .experimental/next-app-dir, minimal-react, minimal, next-big-router, next-formdata, next-minimal-starter, next-prisma-starter, next-prisma-todomvc, next-prisma-websockets-starter, next-sse-chat, ] name: Update downstream ${{ matrix.path }} package steps: - uses: actions/checkout@v6 with: fetch-depth: 0 - name: Run find-and-replace to remove '.experimental/' from above paths uses: mad9000/actions-find-and-replace-string@5 id: findandreplace with: source: ${{ matrix.path }} find: '.experimental/' replace: '' - name: Get the above output run: echo "The replaced value is ${{ steps.findandreplace.outputs.value }}" - uses: pnpm/action-setup@v5 - uses: actions/setup-node@v6 with: node-version: 22.x cache: 'pnpm' - name: Install dependencies and create separate lockfile run: | cd ./examples/${{ matrix.path }} # replace all instances of "@trpc/<<anything but a quote>>": "<<anything but a quote>>" with "@trpc/*": "canary" in the package.json find . -name 'package.json' -print0 | xargs -0 sed -i 's/\("@trpc\/[^"]*"\): "[^"]*"/\1: "canary"/g' pnpm install --no-frozen-lockfile --ignore-scripts --ignore-workspace - name: Commit changes run: | git config --global user.email "<>" git config --global user.name "trpc-bot" git add . git commit -m "chore: sync lockfile" - name: Sync downstream uses: nxtlvlsoftware/git-subtree-action@1.1 with: repo: 'trpc/examples-${{ steps.findandreplace.outputs.value }}' path: 'examples/${{ matrix.path }}' deploy_key: ${{ secrets.TRPC_DEPLOY_TOKEN }} force: true # will force push to the downstream repository branch: main # will push to the main branch of the downstream repository