mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2025-11-07 10:46:56 +00:00
fix: fix a type error when nextRelease is undefined
This commit is contained in:
parent
700d706080
commit
f1ae39a58a
1 changed files with 5 additions and 0 deletions
|
|
@ -14,6 +14,11 @@ module.exports = async (result) => {
|
||||||
|
|
||||||
const {lastRelease, commits, nextRelease, releases} = result;
|
const {lastRelease, commits, nextRelease, releases} = result;
|
||||||
|
|
||||||
|
if (!nextRelease) {
|
||||||
|
core.debug('No release published.');
|
||||||
|
return Promise.resolve();
|
||||||
|
}
|
||||||
|
|
||||||
core.debug(`Published ${nextRelease.type} release version ${nextRelease.version} containing ${commits.length} commits.`);
|
core.debug(`Published ${nextRelease.type} release version ${nextRelease.version} containing ${commits.length} commits.`);
|
||||||
|
|
||||||
if (lastRelease.version) {
|
if (lastRelease.version) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue