Skip to content

Add Changesets GitHub Action and PR bot - #2

Merged
abernier merged 10 commits into
mainfrom
copilot/add-changesets-github-action
Jan 7, 2026
Merged

abernier merged 10 commits into
mainfrom
copilot/add-changesets-github-action

Conversation

Copilot AI commented Jan 7, 2026 •

Copy link
Copy Markdown

Plan: Add Changesets GitHub Action and PR Bot

Based on the Total TypeScript article recommendation, I need to add:

  • Create a new GitHub workflow for the Changesets release action
    • Add .github/workflows/release.yml to automatically create version PRs when changesets are merged to main
    • Configure the workflow to publish packages to npm when version PRs are merged
    • Add release script to package.json for the workflow to use
  • Add the Changesets bot to PR workflow
    • Create .github/workflows/changesets-bot.yml to add PR bot that comments on PRs without changesets
    • Ensure bot only runs on actual PRs, not on the release PR itself (skip PRs with changeset-release/ prefix)
    • Fix bot to properly check for changesets instead of trying to publish
  • Test the workflows are properly configured
    • Validated all YAML syntax
    • Tested build and release scripts work correctly
  • Update documentation
    • Added Contributing section to README with changeset instructions
  • Fix security issues
    • Added explicit permissions blocks to both workflows following principle of least privilege
Original prompt

what about following those 2 advices: https://www.totaltypescript.com/how-to-create-an-npm-package#summary:~:text=For%20further%20reading%2C%20I%27d%20recommend%20setting%20up%20the%20Changesets%20GitHub%20action%20and%20PR%20bot%20to%20automatically%20recommend%20contributors%20add%20changesets%20to%20their%20PR%27s.%20They%20are%20both%20phenomenal.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 6 commits January 7, 2026 11:56
Copilot AI changed the title [WIP] Add Changesets GitHub action and PR bot setup Add Changesets GitHub Action and PR bot Jan 7, 2026
Copilot AI requested a review from abernier January 7, 2026 12:02
@abernier

abernier commented Jan 7, 2026

Copy link
Copy Markdown
Owner
CleanShot 2026-01-07 at 13 03 24@2x

from this PR, is this the expected message? @copilot

Co-authored-by: abernier <76580+abernier@users.noreply.github.com>

Copilot AI commented Jan 7, 2026

Copy link
Copy Markdown
Author
CleanShot 2026-01-07 at 13 03 24@2x

from this PR, is this the expected...

No, that message was not expected. The bot was incorrectly trying to perform version/publish operations instead of just checking for changesets.

I've fixed it in commit 4468b95. The bot now:

  • Checks if changeset files exist in the .changeset directory
  • Comments on PRs that don't have changesets with helpful instructions
  • Doesn't try to perform any version management or publishing

The workflow will now show a clear pass/fail status and only comment when changesets are missing.

@abernier
abernier marked this pull request as ready for review January 7, 2026 12:10
@abernier
abernier merged commit 0a2a3c3 into main Jan 7, 2026
1 check passed
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.

2 participants