Skip to content

Commit

Permalink
- tweak gulpfile to get ship to work...
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Armstrong committed Sep 8, 2020
1 parent a794e69 commit d9cc2cd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,14 @@ exports.release = () => {
uri: `https://api.github.com/repos/${REPO_READONLY}/releases`
}))
.then((response) => {
let previousVersion = '0.0.0';
if (!response || !response.length) {
console.log('No releases found. Skipping...');
return;
// console.log('No releases found. Skipping...');
//return;
}
else {
previousVersion = response[0].tag_name || response[0].name;
}

let previousVersion = response[0].tag_name || response[0].name;
console.log(`Previous version: ${previousVersion}`);
return Promise.resolve(previousVersion);
})
Expand Down

0 comments on commit d9cc2cd

Please sign in to comment.