Skip to content

ci: update github workflows#2086

Merged
lachlancollins merged 2 commits intomainfrom
update-workflows
Mar 17, 2026
Merged

ci: update github workflows#2086
lachlancollins merged 2 commits intomainfrom
update-workflows

Conversation

@lachlancollins
Copy link
Member

@lachlancollins lachlancollins commented Mar 17, 2026

🎯 Changes

Add changeset version preview (see TanStack/router#6937 and TanStack/config#356)

Add comments on releases (see TanStack/config#323)

Remove GITHUB_TOKEN from changesets/action

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm 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

  • New Features

    • Added changeset preview and a new release-preview job to show upcoming release info in PRs.
    • Added an automated PR comment when packages are published to surface release results.
  • Chores

    • Updated GitHub Actions and workflow tools to newer versions for improved stability.
    • Fixed workflow reference casing and removed PR trigger path ignores; added pull-requests permission for workflows.

@changeset-bot
Copy link

changeset-bot bot commented Mar 17, 2026

⚠️ No Changeset found

Latest commit: eba36f3

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

@coderabbitai
Copy link

coderabbitai bot commented Mar 17, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1d0afd25-8db8-410f-b532-139837be670c

📥 Commits

Reviewing files that changed from the base of the PR and between 6abaef0 and eba36f3.

📒 Files selected for processing (1)
  • .github/workflows/release.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/release.yml

📝 Walkthrough

Walkthrough

Updated three GitHub Actions workflows: bumped checkout action to v6.0.2, corrected setup action owner case (tanstack → TanStack), adjusted PR trigger/permissions, upgraded changesets, and added version-preview and release PR-commenting steps.

Changes

Cohort / File(s) Summary
Autofix Workflow
\.github/workflows/autofix.yml
Bumped actions/checkout from v6.0.1v6.0.2; corrected setup action owner case to TanStack/config/....
PR Workflow
\.github/workflows/pr.yml
Removed path-ignores for docs/, media/, and *.md; added pull-requests: write permission; updated actions/checkout to v6.0.2; changed setup action owner case; added new version-preview job using changeset-preview.
Release Workflow
\.github/workflows/release.yml
Bumped actions/checkout to v6.0.2; upgraded changesets action to v1.7.0; switched setup action owner case; removed legacy GITHUB_TOKEN env block and added a new step to comment on PRs after packages are published (TanStack/config/.github/comment-on-release@main).

Sequence Diagram(s)

sequenceDiagram
    participant PR as Pull Request
    participant GH as GitHub Actions
    participant CS as Changesets Action
    participant CR as Comment-on-Release Action
    participant GHP as GitHub PRs

    PR->>GH: push / open triggers workflow
    GH->>GH: checkout (actions/checkout v6.0.2) & setup (TanStack/config)
    GH->>CS: run changesets (v1.7.0) to determine published packages
    CS-->>GH: published-packages info
    GH->>CR: run comment-on-release with published-packages
    CR->>GHP: post comment on related PRs
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 I hopped through YAML, tidy and neat,

Fixed case and versions, kept workflows sweet.
New previews peek, releases get a cheer,
I left a comment, soft and clear.
Hop on, CI—our meadow is near! 🥕

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'ci: update github workflows' is vague and generic, using non-descriptive terms that don't convey the specific improvements made. Consider a more specific title like 'ci: add changeset preview and release comments to workflows' to better communicate the primary changes.
✅ Passed checks (2 passed)
Check name Status Explanation
Description check ✅ Passed The pull request description follows the template structure with all required sections completed, including the motivation for changes and proper release impact classification.
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 update-workflows
📝 Coding Plan
  • Generate coding plan for human review comments

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

@nx-cloud
Copy link

nx-cloud bot commented Mar 17, 2026

View your CI Pipeline Execution ↗ for commit eba36f3

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

☁️ Nx Cloud last updated this comment at 2026-03-17 13:11:47 UTC

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

🚀 Changeset Version Preview

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 17, 2026

More templates

@tanstack/angular-form

npm i https://pkg.pr.new/@tanstack/angular-form@2086

@tanstack/form-core

npm i https://pkg.pr.new/@tanstack/form-core@2086

@tanstack/form-devtools

npm i https://pkg.pr.new/@tanstack/form-devtools@2086

@tanstack/lit-form

npm i https://pkg.pr.new/@tanstack/lit-form@2086

@tanstack/react-form

npm i https://pkg.pr.new/@tanstack/react-form@2086

@tanstack/react-form-devtools

npm i https://pkg.pr.new/@tanstack/react-form-devtools@2086

@tanstack/react-form-nextjs

npm i https://pkg.pr.new/@tanstack/react-form-nextjs@2086

@tanstack/react-form-remix

npm i https://pkg.pr.new/@tanstack/react-form-remix@2086

@tanstack/react-form-start

npm i https://pkg.pr.new/@tanstack/react-form-start@2086

@tanstack/solid-form

npm i https://pkg.pr.new/@tanstack/solid-form@2086

@tanstack/solid-form-devtools

npm i https://pkg.pr.new/@tanstack/solid-form-devtools@2086

@tanstack/svelte-form

npm i https://pkg.pr.new/@tanstack/svelte-form@2086

@tanstack/vue-form

npm i https://pkg.pr.new/@tanstack/vue-form@2086

commit: eba36f3

Copy link

@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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/release.yml:
- Around line 33-44: The workflow step using changesets/action@v1.7.0 (named
"Run Changesets (version or publish)") is missing an id, so later references to
steps.changesets.outputs.published and
steps.changesets.outputs.publishedPackages are undefined; add id: changesets to
that step (immediately under the step definition for the changesets/action step)
so the outputs can be accessed by the subsequent "Comment on PRs about release"
step.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 52348bc0-e2da-4d2d-ae41-81788ac3673f

📥 Commits

Reviewing files that changed from the base of the PR and between b1bf05d and 6abaef0.

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

@lachlancollins lachlancollins merged commit e21cc01 into main Mar 17, 2026
7 checks passed
@lachlancollins lachlancollins deleted the update-workflows branch March 17, 2026 13:14
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