We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97b3495 commit 77b967eCopy full SHA for 77b967e
src/releases.mjs
@@ -35,11 +35,16 @@ const getChangelogFromFileSystem = async changelogUrl =>
35
* @param {string} changelogPath The given URL to the Node.js CHANGELOG.md file
36
*/
37
const createNodeReleases = changelogPath => {
38
- const changelogUrl = new URL(changelogPath);
+ // /**
39
+ // * @type {Promise<string>}
40
+ // */
41
+ // let changelogStrategy;
42
+
43
+ const changelogUrl = URL.parse(changelogPath);
44
45
const changelogStrategy =
- changelogUrl.protocol === 'file:'
- ? getChangelogFromFileSystem(changelogUrl)
46
+ !changelogUrl || changelogUrl.protocol === 'file:'
47
+ ? getChangelogFromFileSystem(changelogUrl ?? changelogPath)
48
: getChangelogFromNetwork(changelogUrl);
49
50
/**
0 commit comments