Skip to content

build: release with changesets - #306

Merged
alexander-akait merged 1 commit into
mainfrom
build/changesets
Sep 7, 2026
Merged

build: release with changesets#306
alexander-akait merged 1 commit into
mainfrom
build/changesets

Conversation

@alexander-akait

Copy link
Copy Markdown
Member

Summary

Adopts the release setup less-loader uses, so this repository releases the same way as the rest of them:

  • .changeset/ with config.json, the README.md boilerplate and the shared changelog-generator.mjs — a verbatim copy of less-loader's, with repo pointed at webpack/lint-webpack-plugin.
  • .github/workflows/release.yml, running changesets/action on pushes to main with the same pinned action SHAs, so it either opens the version pull request or publishes to npm once that lands. Guarded by if: github.repository == 'webpack/lint-webpack-plugin'.
  • standard-version is dropped; version and release become changeset version and npm run build && changeset publish. The CHANGELOG.md header no longer points at standard-version for commit guidelines.

@changesets/get-github-info is pinned to ^0.8.0, matching less-loader, and that is deliberate rather than a stale range: 1.x replaces the getInfo / getInfoFromPullRequest the generator formats its links from with a differently shaped getCommitInfo / getPullRequestInfo, so taking it would mean rewriting a file that is otherwise a straight copy. @changesets/cli is on the current ^3.0.2.

It also carries one changeset for the merge that main already holds, so the first release off this setup is the 7.0.0 the rename and the new linters option call for. Drop or re-level that file if you would rather the renamed package start elsewhere — it is the only thing deciding the next version number.

What kind of change does this PR introduce?

build.

Did you add tests for your changes?

No — this is release tooling and touches no source. I verified it by running the pipeline rather than by asserting on it: npx changeset status reports the major, and npm run version produced 6.0.07.0.0 with the changelog entry rendered by the custom generator. That dry run was reverted, so the commit carries the un-consumed changeset.

Does this PR introduce a breaking change?

No. No source file changes and peerDependencies are untouched.

If relevant, what needs to be documented once your changes are merged or what have you already documented?

Contributors now add a changeset instead of relying on commit messages for the changelog. Worth a line in the contributing guide if you want it spelled out; the .changeset/README.md covers the basics.

Use of AI

Written with Claude Code, driven interactively. I asked for less-loader's setup to be ported here; Claude read that repository, ported the files and verified the pipeline end to end. I reviewed the result.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GzZci4NQeiqwdrVfd7dGXy


Generated by Claude Code

Adopt the release setup less-loader uses: `.changeset/` with the shared
changelog generator, and a Release workflow that lets `changesets/action`
either open the version pull request or publish once it lands. `standard-version`
goes, and `version` and `release` become `changeset version` and
`changeset publish`.

`@changesets/get-github-info` is held at `0.8` deliberately: `1.x` replaces the
`getInfo` and `getInfoFromPullRequest` the generator formats links from with a
differently shaped `getCommitInfo` and `getPullRequestInfo`, so taking it would
mean rewriting a file that is otherwise a verbatim copy of less-loader's.

Carry a changeset for the merge that main already holds, so the first release
off this setup is the 7.0.0 the rename and the new `linters` option call for.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GzZci4NQeiqwdrVfd7dGXy
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​changesets/​cli@​3.0.2991007497100
Added@​changesets/​get-github-info@​0.8.0991009891100

View full report

@alexander-akait
alexander-akait merged commit 0478de4 into main Sep 7, 2026
25 checks passed
@alexander-akait
alexander-akait deleted the build/changesets branch September 7, 2026 11:28
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