Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/workflow-test-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"nextjs-to-tanstack": patch
---

Document registry package name in README (release workflow test).
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ jobs:
files=$(git diff --name-only --diff-filter=ACMR origin/main...HEAD | tr '\n' ' ')
echo "files=$files" >> "$GITHUB_OUTPUT"

# Biome only formats/lints JS/TS/JSON — skip .md, .yaml, .sh, etc.
biome_files=""
for f in $(git diff --name-only --diff-filter=ACMR origin/main...HEAD); do
case "$f" in
*.ts|*.tsx|*.js|*.jsx|*.json|*.jsonc) biome_files="${biome_files} ${f}" ;;
esac
done
biome_files=$(echo "$biome_files" | xargs)
echo "biome_files=$biome_files" >> "$GITHUB_OUTPUT"

- name: Get changed codemod package dirs
id: codemods
run: |
Expand All @@ -59,12 +69,12 @@ jobs:
echo "dirs=$dirs" >> "$GITHUB_OUTPUT"

- name: Format check (changed files)
if: steps.changed.outputs.files != ''
run: pnpm exec biome format ${{ steps.changed.outputs.files }}
if: steps.changed.outputs.biome_files != ''
run: pnpm exec biome format ${{ steps.changed.outputs.biome_files }}

- name: Lint (changed files)
if: steps.changed.outputs.files != ''
run: pnpm exec biome lint ${{ steps.changed.outputs.files }}
if: steps.changed.outputs.biome_files != ''
run: pnpm exec biome lint ${{ steps.changed.outputs.biome_files }}

- name: Markdown link check
run: pnpm run docs:links
Expand Down
2 changes: 2 additions & 0 deletions codemods/nextjs-to-tanstack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ npx codemod@latest workflow run --workflow workflow.yaml --target .

Back up or commit first (recommended). Many files change; unmigrated `pages/` files may end up under `migrated-from-pages/`.

The registry package name is `nextjs-to-tanstack` (same as in `codemod.yaml`).

---

## Workflow params
Expand Down