Skip to content

Add automated release workflow with Changesets - #43

Merged
moshest merged 3 commits into
mainfrom
claude/setup-changeset-publishing-sjEw6
Mar 10, 2026
Merged

moshest merged 3 commits into
mainfrom
claude/setup-changeset-publishing-sjEw6

Conversation

@moshest

@moshest moshest commented Mar 10, 2026

Copy link
Copy Markdown
Member

Summary

This PR implements an automated release workflow using GitHub Actions and Changesets, enabling continuous deployment of packages to npm when changes are merged to the main branch.

Key Changes

  • Added GitHub Actions workflow (.github/workflows/release.yml): Automated CI/CD pipeline that triggers on pushes to main, builds the project, and uses Changesets to manage versioning and publishing
  • Updated Changesets configuration (.changeset/config.json): Switched from default changelog to GitHub-integrated changelog generator for better release notes
  • Updated release script (package.json): Removed manual npm login step and added build step to the release command, as the GitHub Actions workflow now handles authentication via NODE_AUTH_TOKEN
  • Added GitHub changelog dependency (package.json): Installed @changesets/changelog-github for generating release notes linked to GitHub issues and PRs

Implementation Details

  • The workflow runs on every push to main with concurrency control to prevent simultaneous releases
  • Uses pnpm v10.27.0 and Node.js 20 with Turbo caching for optimized builds
  • Leverages Changesets' native GitHub integration to automatically create release PRs or publish directly when changesets are present
  • Includes a post-publish step to create git tags for each released package version
  • Requires NPM_TOKEN secret to be configured for npm package publishing

https://claude.ai/code/session_017yqDEwFCXoMnk7ZCPAQMfB

claude added 3 commits March 10, 2026 02:41
- Add release workflow that creates version PRs and publishes to npm
- Configure @changesets/changelog-github for PR-linked changelogs
- Update release script to remove interactive npm login

Requires NPM_TOKEN secret to be set in GitHub repo settings.

https://claude.ai/code/session_017yqDEwFCXoMnk7ZCPAQMfB
Adds a comment on PRs indicating whether a changeset is included,
reminding contributors to add one when needed.

https://claude.ai/code/session_017yqDEwFCXoMnk7ZCPAQMfB
@moshest
moshest merged commit 7c2bc1d into main Mar 10, 2026
3 checks passed
@moshest
moshest deleted the claude/setup-changeset-publishing-sjEw6 branch March 10, 2026 02:47
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