Repository navigation
ci: release with changesets like less-loader - #750
Conversation
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
One or more co-authors of this pull request were not found. You must specify co-authors in commit message trailer via: Supported
Alternatively, if the co-author should not be included, remove the Please update your commit message(s) by doing |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
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 fromwebpack/less-loader.Changes
.github/workflows/release.yml: same as less-loader's. On push tomain,changesets/actionopens or updates achore(release): new releasePR, and publishes to npm once that PR is merged. It publishes via OIDC trusted publishing (id-token: write)..changeset/:config.json(repo set towebpack/postcss-loader) and the customchangelog-generator.mjsfrom less-loader.package.json:version→changeset version,release→npm run build && changeset publish. Removesstandard-version, adds@changesets/cliand@changesets/get-github-info.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
release.ymlas a trusted publisher forpostcss-loaderon npmjs.com. Without it, the publish step will fail.Testing
npm run lintandnpm run securitypass.changeset versiondry run reached the changelog generator and stopped there: it needs a GitHub token to look up PR authors. In CI the workflow suppliesGITHUB_TOKEN, so this step hasn't run end to end yet.Generated by Claude Code
Summary by CodeRabbit