Commit acfb4bb
authored
fix: improve changelog linting to prevent formatting issues (#502)
* fix: improve changelog linting to prevent formatting issues
1. Added a new lint:changelog script to specifically validate the changelog format using auto-changelog
2. Incorporated changelog linting into the main lint and lint:fix processes
3. Updated the lint:misc script to:
- Remove the explicit exclusion of CHANGELOG.md (removed '!CHANGELOG.md'), allowing Prettier to format the changelog alongside the dedicated changelog linter
- Add the --no-error-on-unmatched-pattern flag for more resilient builds
4. Updated GitHub Actions workflow:
- Modified build-lint-test.yml to use our new lint:changelog script
- CI build use the same validation command as local development
- Maintains special handling for release branches with the --rc flag
* chore: reformat `CHANGELOG.md` using new linting configuration
- Apply consistent formatting to establish baseline for future edits
- Remove inconsistent blank lines and standardize section spacing
- Ensure compatibility with both Prettier and auto-changelog validators
* fix: add `prepack` script after accidental removal
* ci: update workflow to use `lint:changelog` script
- Replace direct auto-changelog validate calls with lint:changelog script
- Ensure CI uses same validation command as local development
- Maintain RC validation option for release branches1 parent 2ef0363 commit acfb4bb
File tree
3 files changed
+128
-5
lines changed- .github/workflows
3 files changed
+128
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments