ci: add changesets-driven release workflow#672
Merged
alexander-akait merged 1 commit intomainfrom May 8, 2026
Merged
Conversation
Mirrors the setup in webpack/webpack-dev-middleware: - `.changeset/` with `config.json`, README and a `changelog-generator.mjs` that links commits/PRs/users back to GitHub. - `.github/workflows/release.yml` runs `changesets/action` on pushes to `main`. It opens (or updates) a release PR; merging the PR triggers the same workflow which then runs `npm run release` to build and `changeset publish` to npm. - `package.json`: `version` -> `changeset version`, `release` -> build + `changeset publish`. Adds `@changesets/cli` and `@changesets/get-github-info`. Drops `standard-version` since the changesets flow replaces it. https://claude.ai/code/session_01Wa5WuhunnggPcf7DLrx6Ri
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #672 +/- ##
=======================================
Coverage 96.11% 96.11%
=======================================
Files 3 3
Lines 592 592
Branches 203 203
=======================================
Hits 569 569
Misses 21 21
Partials 2 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Mirrors the changesets setup from
webpack/webpack-dev-middleware:.changeset/config.json,README.md,changelog-generator.mjs(links commits/PRs/users back to GitHub; supportspr:/commit:/author:overrides in changeset summaries)..github/workflows/release.ymlrunschangesets/action@v1.7.0on pushes tomain. It opens or updates a release PR; merging that PR re-triggers the workflow which then runsnpm run release(build +changeset publish).package.json:version->changeset version,release->npm run build && changeset publish. Adds@changesets/cliand@changesets/get-github-info. Drops the now-unusedstandard-version.Test plan
node_modules/.bin/changeset statusruns against the new config (correctly errors that there are pending changes without a changeset).node_modules/.bin/jest— full suite (266 tests) still green.if: github.repository == 'webpack/terser-webpack-plugin'keeps it inert on forks.https://claude.ai/code/session_01Wa5WuhunnggPcf7DLrx6Ri
Generated by Claude Code