Skip to content

ci: release with changesets like less-loader - #750

Merged
alexander-akait merged 1 commit into
mainfrom
claude/serene-maxwell-w9rtv0
Nov 20, 2026
Merged

alexander-akait merged 1 commit into
mainfrom
claude/serene-maxwell-w9rtv0

Conversation

@alexander-akait

@alexander-akait alexander-akait commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

postcss-loader has no automated release. It still uses standard-version, which is run by hand, so #746 and #749 haven't been released since 8.2.1. This PR copies the Changesets release setup from webpack/less-loader.

Changes

  • .github/workflows/release.yml: same as less-loader's. On push to main, changesets/action opens or updates a chore(release): new release PR, and publishes to npm once that PR is merged. It publishes via OIDC trusted publishing (id-token: write).
  • .changeset/: config.json (repo set to webpack/postcss-loader) and the custom changelog-generator.mjs from less-loader.
  • package.json: version → changeset version, release → npm run build && changeset publish. Removes standard-version, adds @changesets/cli and @changesets/get-github-info.
  • Changesets for perf: pass a precompiled options check to getOptions #746 and perf: cache the config explorer, plugins and processor per compilation #749 (patch), so the first run opens a release PR for 8.2.2.
  • CHANGELOG.md: drops the line that referred to standard-version.

Before merging / first publish

  • Add this repo + release.yml as a trusted publisher for postcss-loader on npmjs.com. Without it, the publish step will fail.
  • Allow GitHub Actions to create pull requests in repo settings.

Testing

  • npm run lint and npm run security pass.
  • A local changeset version dry run reached the changelog generator and stopped there: it needs a GitHub token to look up PR authors. In CI the workflow supplies GITHUB_TOKEN, so this step hasn't run end to end yet.

Generated by Claude Code

Summary by CodeRabbit

  • Improvements
    • Configuration discovery, plugins, and the processor are cached per compilation.
    • Supported webpack versions can skip compiling the options schema when a precompiled check is provided.
  • Documentation
    • The Changesets guide now explains versioning and publishing for single- and multi-package repositories and links to further documentation.
  • Chores
    • Release versioning and publishing are now automated through Changesets and a GitHub Actions workflow.

Replace `standard-version` with Changesets and add a `release.yml`
workflow (changesets/action, npm OIDC trusted publishing) mirroring
webpack/less-loader. Add changesets for the unreleased #746 and #749.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FhutPvUFin2ATRcnG12Q1
@linux-foundation-easycla

Copy link
Copy Markdown

CLA Not Signed

One or more co-authors of this pull request were not found. You must specify co-authors in commit message trailer via:

Co-authored-by: name <email>

Supported Co-authored-by: formats include:

  1. Anything <id+login@users.noreply.github.com> - it will locate your GitHub user by id part.
  2. Anything <login@users.noreply.github.com> - it will locate your GitHub user by login part.
  3. Anything <public-email> - it will locate your GitHub user by public-email part. Note that this email must be made public on Github.
  4. Anything <other-email> - it will locate your GitHub user by other-email part but only if that email was used before for any other CLA as a main commit author.
  5. login <any-valid-email> - it will locate your GitHub user by login part, note that login part must be at least 3 characters long.

Alternatively, if the co-author should not be included, remove the Co-authored-by: line from the commit message.

Please update your commit message(s) by doing git commit --amend and then git push [--force] and then request re-running CLA check via commenting on this pull request:

/easycla

@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/​get-github-info@​0.8.0991009885100
Added@​changesets/​cli@​2.31.19710010095100

View full report

@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.09%. Comparing base (7ee9cd0) to head (456d5d0).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #750   +/-   ##
=======================================
  Coverage   90.09%   90.09%           
=======================================
  Files           4        4           
  Lines         434      434           
  Branches      143      143           
=======================================
  Hits          391      391           
  Misses         39       39           
  Partials        4        4           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@alexander-akait
alexander-akait merged commit 531d624 into main Nov 20, 2026
18 of 19 checks passed
@alexander-akait
alexander-akait deleted the claude/serene-maxwell-w9rtv0 branch November 20, 2026 14:56
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