diff --git a/.changeset/workflow-test-2.md b/.changeset/workflow-test-2.md new file mode 100644 index 0000000..5bafc13 --- /dev/null +++ b/.changeset/workflow-test-2.md @@ -0,0 +1,5 @@ +--- +"nextjs-to-tanstack": patch +--- + +Document registry package name in README (release workflow test). diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 698d5f2..dceee1d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: | @@ -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 diff --git a/codemods/nextjs-to-tanstack/README.md b/codemods/nextjs-to-tanstack/README.md index 0cdff0d..9cb904a 100644 --- a/codemods/nextjs-to-tanstack/README.md +++ b/codemods/nextjs-to-tanstack/README.md @@ -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