Skip to content

[docs] correct a mistake in the migration description (#6328) #11

[docs] correct a mistake in the migration description (#6328)

[docs] correct a mistake in the migration description (#6328) #11

Workflow file for this run

name: subtree-matrix
on:
workflow_dispatch:
push:
branches:
- next
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
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@v4
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@v4
- uses: actions/setup-node@v4
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/*": "next" in the package.json
find . -name 'package.json' -print0 | xargs -0 sed -i 's/\("@trpc\/[^"]*"\): "[^"]*"/\1: "next"/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/[email protected]
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