Skip to content

ci: add changeset version preview#10277

Merged
lachlancollins merged 1 commit intomainfrom
changeset-version-preview
Mar 17, 2026
Merged

ci: add changeset version preview#10277
lachlancollins merged 1 commit intomainfrom
changeset-version-preview

Conversation

@lachlancollins
Copy link
Member

@lachlancollins lachlancollins commented Mar 17, 2026

🎯 Changes

See TanStack/router#6937 and TanStack/config#356

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm run test:pr.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions workflow dependencies to latest versions across autofix, release, and pull request workflows.
    • Added version preview feature to pull request workflow for changelog tracking.
    • Enhanced CI/CD pipeline with automated fixes step.

@changeset-bot
Copy link

changeset-bot bot commented Mar 17, 2026

⚠️ No Changeset found

Latest commit: 2c9d9bb

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

🚀 Changeset Version Preview

No changeset entries found. Merging this PR will not cause a version bump for any packages.

@nx-cloud
Copy link

nx-cloud bot commented Mar 17, 2026

View your CI Pipeline Execution ↗ for commit 2c9d9bb

Command Status Duration Result
nx run-many --target=build --exclude=examples/*... ✅ Succeeded <1s View ↗
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 15s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-17 12:37:35 UTC

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 17, 2026

📝 Walkthrough

Walkthrough

GitHub Actions workflows updated across multiple files with dependency version bumps (actions/checkout v6.0.1→v6.0.2, changesets/action v1.5.3→v1.7.0), TanStack action reference case normalization, YAML syntax restructuring in labeler workflow, and a new version-preview job added to the PR workflow.

Changes

Cohort / File(s) Summary
Workflow dependency and action updates
.github/workflows/autofix.yml, .github/workflows/pr.yml, .github/workflows/release.yml
Updated actions/checkout from v6.0.1 to v6.0.2; normalized tanstack/config action paths to TanStack/config for case consistency; bumped changesets/action from v1.5.3 to v1.7.0 in release workflow.
Workflow structural changes
.github/workflows/labeler.yml
Changed on.pull_request_target YAML structure from list format to mapping format without behavioral change.
New workflow jobs and steps
.github/workflows/autofix.yml, .github/workflows/pr.yml
Added autofix-ci/action step in autofix workflow; introduced new version-preview job in PR workflow with checkout, setup, and changeset preview steps.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 Our workflows hop to newer grounds,
Version bumps and case-fixes abound!
TanStack paths now properly styled,
New jobs preview changes with pride—
CI/CD automation, refined and beguiled! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'ci: add changeset version preview' directly relates to the main change—adding a new version-preview job in pr.yml workflow.
Description check ✅ Passed The description follows the required template structure with all sections completed, checklist items checked appropriately, and release impact correctly marked as CI/dev-only.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch changeset-version-preview
📝 Coding Plan
  • Generate coding plan for human review comments

Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 17, 2026

More templates

@tanstack/angular-query-experimental

npm i https://pkg.pr.new/@tanstack/angular-query-experimental@10277

@tanstack/eslint-plugin-query

npm i https://pkg.pr.new/@tanstack/eslint-plugin-query@10277

@tanstack/preact-query

npm i https://pkg.pr.new/@tanstack/preact-query@10277

@tanstack/preact-query-devtools

npm i https://pkg.pr.new/@tanstack/preact-query-devtools@10277

@tanstack/preact-query-persist-client

npm i https://pkg.pr.new/@tanstack/preact-query-persist-client@10277

@tanstack/query-async-storage-persister

npm i https://pkg.pr.new/@tanstack/query-async-storage-persister@10277

@tanstack/query-broadcast-client-experimental

npm i https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@10277

@tanstack/query-core

npm i https://pkg.pr.new/@tanstack/query-core@10277

@tanstack/query-devtools

npm i https://pkg.pr.new/@tanstack/query-devtools@10277

@tanstack/query-persist-client-core

npm i https://pkg.pr.new/@tanstack/query-persist-client-core@10277

@tanstack/query-sync-storage-persister

npm i https://pkg.pr.new/@tanstack/query-sync-storage-persister@10277

@tanstack/react-query

npm i https://pkg.pr.new/@tanstack/react-query@10277

@tanstack/react-query-devtools

npm i https://pkg.pr.new/@tanstack/react-query-devtools@10277

@tanstack/react-query-next-experimental

npm i https://pkg.pr.new/@tanstack/react-query-next-experimental@10277

@tanstack/react-query-persist-client

npm i https://pkg.pr.new/@tanstack/react-query-persist-client@10277

@tanstack/solid-query

npm i https://pkg.pr.new/@tanstack/solid-query@10277

@tanstack/solid-query-devtools

npm i https://pkg.pr.new/@tanstack/solid-query-devtools@10277

@tanstack/solid-query-persist-client

npm i https://pkg.pr.new/@tanstack/solid-query-persist-client@10277

@tanstack/svelte-query

npm i https://pkg.pr.new/@tanstack/svelte-query@10277

@tanstack/svelte-query-devtools

npm i https://pkg.pr.new/@tanstack/svelte-query-devtools@10277

@tanstack/svelte-query-persist-client

npm i https://pkg.pr.new/@tanstack/svelte-query-persist-client@10277

@tanstack/vue-query

npm i https://pkg.pr.new/@tanstack/vue-query@10277

@tanstack/vue-query-devtools

npm i https://pkg.pr.new/@tanstack/vue-query-devtools@10277

commit: 2c9d9bb

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
react full 11.92 KB (0%)
react minimal 8.95 KB (0%)

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
.github/workflows/pr.yml (1)

75-84: Consider adding a job timeout for version-preview.

This helps prevent long-running hangs from blocking PR workflows.

Suggested diff
   version-preview:
     name: Version Preview
     runs-on: ubuntu-latest
+    timeout-minutes: 15
     steps:
       - name: Checkout
         uses: actions/checkout@v6.0.2
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/pr.yml around lines 75 - 84, The GitHub Actions job
"version-preview" lacks a timeout which can cause hung runs to block PR
workflows; add a job-level timeout by inserting a "timeout-minutes: <number>"
key (e.g., 30) under the "version-preview" job definition so the runner will
automatically cancel the job after the specified minutes—update the job block
that begins with "version-preview:" (which contains steps like "Checkout",
"Setup Tools", and "Changeset Preview") to include this timeout setting.
.github/workflows/autofix.yml (1)

21-23: Pin action refs to immutable SHAs instead of mutable branches.

Line 23 uses @main (a mutable branch), which is vulnerable to supply-chain risk. While pinning to full commit SHAs is best practice for all actions, v6.0.2 is already an immutable semantic version release tag and does not pose the same risk as branch references. Prioritize converting @main to its corresponding commit SHA.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/autofix.yml around lines 21 - 23, The workflow is using a
mutable branch ref "TanStack/config/.github/setup@main" which should be pinned
to an immutable commit SHA; locate the uses entry for
"TanStack/config/.github/setup@main" in the workflow and replace the branch ref
with the repository's corresponding full commit SHA for the desired version
(similar to how "actions/checkout@v6.0.2" is already an immutable tag), ensuring
the action is pinned to that SHA to remove supply-chain risk.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.github/workflows/autofix.yml:
- Around line 21-23: The workflow is using a mutable branch ref
"TanStack/config/.github/setup@main" which should be pinned to an immutable
commit SHA; locate the uses entry for "TanStack/config/.github/setup@main" in
the workflow and replace the branch ref with the repository's corresponding full
commit SHA for the desired version (similar to how "actions/checkout@v6.0.2" is
already an immutable tag), ensuring the action is pinned to that SHA to remove
supply-chain risk.

In @.github/workflows/pr.yml:
- Around line 75-84: The GitHub Actions job "version-preview" lacks a timeout
which can cause hung runs to block PR workflows; add a job-level timeout by
inserting a "timeout-minutes: <number>" key (e.g., 30) under the
"version-preview" job definition so the runner will automatically cancel the job
after the specified minutes—update the job block that begins with
"version-preview:" (which contains steps like "Checkout", "Setup Tools", and
"Changeset Preview") to include this timeout setting.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 64dbbd73-171e-4408-a48c-bba8cfded35a

📥 Commits

Reviewing files that changed from the base of the PR and between d4fd941 and 2c9d9bb.

📒 Files selected for processing (4)
  • .github/workflows/autofix.yml
  • .github/workflows/labeler.yml
  • .github/workflows/pr.yml
  • .github/workflows/release.yml

@lachlancollins lachlancollins merged commit 4c87002 into main Mar 17, 2026
8 checks passed
@lachlancollins lachlancollins deleted the changeset-version-preview branch March 17, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant