diff --git a/scripts/oc-dev.mjs b/scripts/oc-dev.mjs index 0f6a01b6..afd85b71 100755 --- a/scripts/oc-dev.mjs +++ b/scripts/oc-dev.mjs @@ -177,7 +177,7 @@ function step(label, fn) { // The release notes source plus the files generated from it; all go into the release commit. // CHANGELOG.md is legacy (older installs read it for update notes); it is // refreshed only while it exists. -const RELEASE_CHANGELOG_FILES = ['changelog', 'packages/vscode/CHANGELOG.md', ...(fs.existsSync('CHANGELOG.md') ? ['CHANGELOG.md'] : [])]; +const RELEASE_CHANGELOG_FILES = ['changelog', 'packages/vscode/CHANGELOG.md', ...(existsSync(path.join(repoRoot, 'CHANGELOG.md')) ? ['CHANGELOG.md'] : [])]; function printReleaseNextSteps(version) { log.success(`Release v${version} prepared locally`);