Skip to content

Commit

Permalink
feat: add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed May 25, 2022
1 parent 93c0905 commit ab5af23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bumper.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ module.exports = async (

//Bump version
const newVersion = bumpVersion(currentVersion, doMajorVersion, doMinorVersion, doPatchVersion, doPreReleaseVersion, preReleaseId);
logInfo(`New version: ${newVersion}`);
let newContent;
if (type === 'csproj') {
newContent = getNewProjectContentCsproj(newVersion, projectFile);
} else if (type === 'assembly') {
currentVersion = getCurrentVersionAssembly(projectFile);
newContent = getCurrentVersionAssembly(projectFile);
}
// eslint-disable-next-line security/detect-non-literal-fs-filename
await promises.writeFile(pathToDocument, newContent);
Expand Down

0 comments on commit ab5af23

Please sign in to comment.