diff --git a/.github/scripts/bump-versions.mjs b/.github/scripts/bump-versions.mjs index c1c110272c..8e7acc21eb 100644 --- a/.github/scripts/bump-versions.mjs +++ b/.github/scripts/bump-versions.mjs @@ -43,7 +43,7 @@ for (const packageName in packageMap) { packageJson.version = packageMap[packageName].nextVersion = isDirty || - Object.keys(packageJson.dependencies).some( + Object.keys(packageJson.dependencies || {}).some( (dependencyName) => packageMap[dependencyName]?.isDirty, ) ? semver.inc(version, releaseType)