Skip to content

Commit

Permalink
Bumped version to 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanocerza committed May 21, 2021
1 parent 07ece41 commit a0b1e2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Changelog {
lines.push(`${c.hash} ${c.message}`);
});
const changelogDir = path.parse(this.settings.changelogFilePath).dir;
if (!fs.existsSync(changelogDir)) {
if (changelogDir && !fs.existsSync(changelogDir)) {
fs.mkdirSync(changelogDir);
}
fs.writeFileSync(this.settings.changelogFilePath, lines.join('\n'));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-changelog",
"version": "1.2.1",
"version": "1.2.2",
"private": true,
"description": "Action to generate a changelog from a Git repository commit history.",
"main": "lib/main.js",
Expand Down

0 comments on commit a0b1e2f

Please sign in to comment.