Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit f96a1ca

Browse files
authored
fix(infrastructure): correct reason why component is shown in summary table. (#519)
1 parent 1a6d1ac commit f96a1ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/determine-pkg-versions.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,11 @@ function pickBestVersionInfo(pkg) {
141141
possibleNewChangeType = semver.major(pkg.version) === 0 ? VersionType.MINOR : VersionType.MAJOR;
142142
} else if (commitInfo.type === 'feat') {
143143
possibleNewChangeType = VersionType.MINOR;
144+
} else if (commitInfo.type === 'docs') {
145+
// docs would not cause any change, so it should not put its commit message as reason of version bump.
146+
return currentBest;
144147
} else {
145-
// fix, docs, style (refers to coding style), refactor (non-breaking change), chore, ...
148+
// fix, style (refers to coding style), refactor (non-breaking change), chore, ...
146149
possibleNewChangeType = VersionType.PATCH;
147150
}
148151
// Note that we assume that pkg.version is valid by the time we get here.

0 commit comments

Comments
 (0)