Validate change-notes in PRs

This commit also introduces the 'empty' home directory for future change-notes.
This commit is contained in:
Mario Campos
2026-08-31 11:38:54 -05:00
parent a691c16115
commit f60f4d9500
3 changed files with 7 additions and 0 deletions

View File

@@ -114,6 +114,10 @@ jobs:
working-directory: pr-checks working-directory: pr-checks
run: npx tsx --test run: npx tsx --test
- name: Run `pr-checks/changenotes.mts` to ensure that all unreleased change notes are valid
if: ${{ !cancelled() && steps.install-deps.outcome == 'success' }}
run: npx tsx pr-checks/changenotes.mts validate
- name: Verify all Actions use the same Node version - name: Verify all Actions use the same Node version
id: head-version id: head-version
run: | run: |

View File

@@ -18,6 +18,9 @@ export const PACKAGE_JSON = path.join(REPO_ROOT, "package.json");
/** The path of the changelog. */ /** The path of the changelog. */
export const CHANGELOG_FILE = path.join(REPO_ROOT, "CHANGELOG.md"); export const CHANGELOG_FILE = path.join(REPO_ROOT, "CHANGELOG.md");
/** The path to the unreleased change-notes directory. */
export const CHANGENOTES_DIR = path.join(REPO_ROOT, "unreleased-change-notes");
/** The path to the esbuild metadata file. */ /** The path to the esbuild metadata file. */
export const BUNDLE_METADATA_FILE = path.join(REPO_ROOT, "meta.json"); export const BUNDLE_METADATA_FILE = path.join(REPO_ROOT, "meta.json");

View File