ci: rename commitlint config to .mjs - #9
Merged
Merged
Conversation
…lint
## What and why
Replaces the manual "cut a tag to publish" flow with automated, Conventional-Commit-driven
versioning. Merges no longer require hand-picking a version: Release Please computes the next
version and changelog from commit types, and merging its release PR tags the commit and publishes
to nuget.org.
## How it works
merge feature/fix PRs -> Release Please opens/updates a "release PR" (version bump + CHANGELOG)
merge the release PR -> Release Please creates tag vX.Y.Z + GitHub Release
-> `publish` job (same run) packs and pushes to nuget.org
Bump level comes from the commit type: `fix:` → patch, `feat:` → minor, `feat!:` / `BREAKING
CHANGE:` → major. Publishing happens only on a deliberate release, not on every merge.
## Changes
- **`.github/workflows/release.yml`**: reworked from a tag-triggered publish to `push: main` →
`release-please` job + `publish` job (`if: release_created`). `publish` keeps the reviewed
`release` environment and OIDC trusted publishing. It's a downstream job in the same run, so the
default `GITHUB_TOKEN` is enough — no PAT needed.
- **`release-please-config.json` / `.release-please-manifest.json`** (new): `simple` release type,
`include-component-in-tag: false` so tags stay `vX.Y.Z` (matching the existing `v1.0.0`), and
`extra-files` bumps `<Version>` in the csproj.
- **`src/RuleCraft/RuleCraft.csproj`**: `x-release-please-version` marker on `<Version>` so it is
bumped automatically.
- **`.github/workflows/commitlint.yml` + `commitlint.config.js`** (new): enforces Conventional
Commits on every PR to main (CI-side via wagoid action — no local Node/husky footprint). Prose
commit bodies are exempt from the 100-char wrap rule.
- **`CHANGELOG.md`**: reformatted to the Release Please layout so future auto-generated entries
stay consistent.
## Required repo settings (must be enabled for this to work)
- **Settings → Actions → General → Workflow permissions**: "Read and write permissions" **and**
"Allow GitHub Actions to create and approve pull requests" — otherwise Release Please cannot open
the release PR.
- **`release` environment** with required reviewers (gates the NuGet push).
- Secret **`NUGET_USER`** present (unchanged).
## Notes
- Normal PRs still run the Build (`ci.yml`) workflow. The one exception is the Release-Please-authored
release PR, which the default `GITHUB_TOKEN` does not trigger CI on; it only touches version +
changelog, and `ci.yml` + the publish job's own `dotnet test` both run once it lands on main.
- First release after this lands will be **1.0.1** (the commits since `v1.0.0` are fixes).
mkasperczyk90
force-pushed
the
ci/release-please-automation
branch
from
July 18, 2026 20:45
93f5afd to
1e37fdc
Compare
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.
…lint
What and why
Replaces the manual "cut a tag to publish" flow with automated, Conventional-Commit-driven versioning. Merges no longer require hand-picking a version: Release Please computes the next version and changelog from commit types, and merging its release PR tags the commit and publishes to nuget.org.
How it works
merge feature/fix PRs -> Release Please opens/updates a "release PR" (version bump + CHANGELOG)
merge the release PR -> Release Please creates tag vX.Y.Z + GitHub Release
->
publishjob (same run) packs and pushes to nuget.orgBump level comes from the commit type:
fix:→ patch,feat:→ minor,feat!:/BREAKING CHANGE:→ major. Publishing happens only on a deliberate release, not on every merge.Changes
.github/workflows/release.yml: reworked from a tag-triggered publish topush: main→release-pleasejob +publishjob (if: release_created).publishkeeps the reviewedreleaseenvironment and OIDC trusted publishing. It's a downstream job in the same run, so the defaultGITHUB_TOKENis enough — no PAT needed.release-please-config.json/.release-please-manifest.json(new):simplerelease type,include-component-in-tag: falseso tags stayvX.Y.Z(matching the existingv1.0.0), andextra-filesbumps<Version>in the csproj.src/RuleCraft/RuleCraft.csproj:x-release-please-versionmarker on<Version>so it is bumped automatically..github/workflows/commitlint.yml+commitlint.config.js(new): enforces Conventional Commits on every PR to main (CI-side via wagoid action — no local Node/husky footprint). Prose commit bodies are exempt from the 100-char wrap rule.CHANGELOG.md: reformatted to the Release Please layout so future auto-generated entries stay consistent.Required repo settings (must be enabled for this to work)
releaseenvironment with required reviewers (gates the NuGet push).NUGET_USERpresent (unchanged).Notes
ci.yml) workflow. The one exception is the Release-Please-authored release PR, which the defaultGITHUB_TOKENdoes not trigger CI on; it only touches version + changelog, andci.yml+ the publish job's owndotnet testboth run once it lands on main.v1.0.0are fixes).