Skip to content

Commit

Permalink
fix: fix a type error when nextRelease is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
cycjimmy committed Nov 16, 2020
1 parent 700d706 commit f1ae39a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/windUpJob.task.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ module.exports = async (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.`);

if (lastRelease.version) {
Expand Down

0 comments on commit f1ae39a

Please sign in to comment.